page: replace global variables by $Page object
[minimedit.git] / widget / search.php
index 20c89f8625a5f25f7511e5b6057a9a244da7a5ae..ff091f795c83b5ff291eadee3eaa1f529e749423 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 $limit = @$Place['limit'] ?: 10;
 $path = ' '.escapeshellarg('*.html');
-$query = @$_REQUEST['q'] ?: $Args ?: $Page;
+$query = @$_REQUEST['q'] ?: $Page->path ?: $Page->handler;
 
 if (!trim($query, '/')) return;