From 340f849adf3c38d60df29be3fa2766d33fd18441 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= <grosse@cosmocode.de>
Date: Tue, 27 Mar 2018 15:25:16 +0200
Subject: [PATCH] fix(search): remove overlook from parameter

That parameter was introduced in cbcc2fa and removed in d22b78c
---
 inc/Action/Search.php | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/inc/Action/Search.php b/inc/Action/Search.php
index 3db42e114..7f632727b 100644
--- a/inc/Action/Search.php
+++ b/inc/Action/Search.php
@@ -76,7 +76,7 @@ class Search extends AbstractAction {
      */
     protected function adjustGlobalQuery()
     {
-        global $conf, $INPUT, $QUERY;
+        global $conf, $INPUT, $QUERY, $ID;
 
         if ($INPUT->bool('searchPageForm')) {
             return;
@@ -87,9 +87,8 @@ class Search extends AbstractAction {
 
         if (empty($parsedQuery['ns']) && empty($parsedQuery['notns'])) {
             if ($conf['search_limit_to_first_ns'] > 0) {
-                $searchOriginPage = $INPUT->str('from');
-                if (getNS($searchOriginPage) !== false) {
-                    $nsParts = explode(':', getNS($searchOriginPage));
+                if (getNS($ID) !== false) {
+                    $nsParts = explode(':', getNS($ID));
                     $ns = implode(':', array_slice($nsParts, 0, $conf['search_limit_to_first_ns']));
                     $QUERY .= " @$ns";
                 }
-- 
GitLab