git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
page: replace global variables by $Page object
[minimedit.git]
/
widget
/
search.php
diff --git
a/widget/search.php
b/widget/search.php
index 20c89f8625a5f25f7511e5b6057a9a244da7a5ae..ff091f795c83b5ff291eadee3eaa1f529e749423 100644
(file)
--- a/
widget/search.php
+++ b/
widget/search.php
@@
-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;