Skip to content

Commit

Permalink
fix(search): remove overlook from parameter
Browse files Browse the repository at this point in the history
That parameter was introduced in cbcc2fa and removed in d22b78c
  • Loading branch information
micgro42 committed Mar 27, 2018
1 parent 5facb9b commit 340f849
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions inc/Action/Search.php
Expand Up @@ -76,7 +76,7 @@ protected function execute()
*/
protected function adjustGlobalQuery()
{
global $conf, $INPUT, $QUERY;
global $conf, $INPUT, $QUERY, $ID;

if ($INPUT->bool('searchPageForm')) {
return;
Expand All @@ -87,9 +87,8 @@ protected function adjustGlobalQuery()

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";
}
Expand Down

0 comments on commit 340f849

Please sign in to comment.