X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/772961fd4e9be46ad340cad1e55ee5f28cc5b968..6bdc514b94fb0127159c809e8f311cccc230d4ee:/widget/search.php diff --git a/widget/search.php b/widget/search.php index ff091f7..fe3b54e 100644 --- a/widget/search.php +++ b/widget/search.php @@ -1,11 +1,11 @@ place['limit'] ?: 10; $path = ' '.escapeshellarg('*.html'); -$query = @$_REQUEST['q'] ?: $Page->path ?: $Page->handler; +$query = @$_REQUEST['q'] ?: $Page->place[0] ?? $Page->link; if (!trim($query, '/')) return; -if (!empty($Place['suggest'])) { +if (!empty($Page->place['suggest'])) { $cmd = "git ls-files -- $path"; exec($cmd, $ls); if (!$ls) { @@ -28,7 +28,7 @@ else { } } -if (isset($Place['verbose'])) { +if (isset($Page->place['verbose'])) { printf("

%s gevonden voor %s:

\n", $results ? count($results).' resultaten' : 'Niets', htmlspecialchars($query)