X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/f065f4739ae477d8877805463017f2e7b15e2db5..b04f76050d54c67844d5d4026993f6fab0edeae5:/widget/search.php diff --git a/widget/search.php b/widget/search.php index ff091f7..6c5788e 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; 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)