widget: unnamed options as placeholders instead of path
[minimedit.git] / widget / search.php
index 6c5788eabc49598da412a43211831f0f72f05f20..fe3b54ee0a9b416f331309c417aff6d79ebfae88 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 $limit = @$Page->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;