Skip to content
Snippets Groups Projects
Unverified Commit 340f849a authored by Michael Große's avatar Michael Große
Browse files

fix(search): remove overlook from parameter

That parameter was introduced in cbcc2fa5 and removed in d22b78c8
parent 5facb9bc
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment