X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialSearch.php;h=965885eadc427949e86fa2bdf21b723a5174fcc7;hb=5cb425a62b6eba0161702fe49568d137d7b91c91;hp=d308681d8f9b8c1630b28702b0fdeee32338d91c;hpb=f4357b647f5e66a83552a79fbeed74927abd8e2d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index d308681d8f..965885eadc 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -540,9 +540,7 @@ 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 ) { - if ( $n >= 0 ) { - $user->setOption( 'searchNs' . $n, false ); - } + $user->setOption( 'searchNs' . $n, false ); } // The request parameters include all the namespaces we just searched. // Even if they're the same as an existing profile, they're not eaten.