diff options
author | Aryeh Gregor <ayg@aryeh.name> | 2018-08-05 20:58:51 +0300 |
---|---|---|
committer | daniel <dkinzler@wikimedia.org> | 2019-05-07 22:44:56 +0200 |
commit | 2e1ac38485b9c78890944413cba074474c06bd34 (patch) | |
tree | ae6ecb65fca0bf457cb82d8f20bf25cc572798cc /includes/specials/SpecialSearch.php | |
parent | 2be1e039d9b45b91389a3bfd863b9638109afb82 (diff) | |
download | mediawikicore-2e1ac38485b9c78890944413cba074474c06bd34.tar.gz mediawikicore-2e1ac38485b9c78890944413cba074474c06bd34.zip |
Mass conversion to NamespaceInfo
Change-Id: I2fef157ceec772f304c0923a1cd8c0eef2e82a0f
Diffstat (limited to 'includes/specials/SpecialSearch.php')
-rw-r--r-- | includes/specials/SpecialSearch.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index c88fb2733bb4..4adc2475e1be 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. |