X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialSearch.php;h=4adc2475e1be8a469c5b0731caf968394602fd12;hb=284778405b0e41c57b3085958401e07b6ca742e6;hp=c88fb2733bb455ca260000f6fce668fbe8fb0059;hpb=04fd74f44fe5d5cdae7551ef0cc7baac1a87d18d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index c88fb2733b..4adc2475e1 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -647,7 +647,9 @@ class SpecialSearch extends SpecialPage { ) { // Reset namespace preferences: namespaces are not searched // when they're not mentioned in the URL parameters. - foreach ( MWNamespace::getValidNamespaces() as $n ) { + foreach ( MediaWikiServices::getInstance()->getNamespaceInfo()->getValidNamespaces() + as $n + ) { $user->setOption( 'searchNs' . $n, false ); } // The request parameters include all the namespaces to be searched.