From: Niklas Laxström Date: Mon, 23 Aug 2010 08:46:13 +0000 (+0000) Subject: Fix yet another regression in r71342: NS_MAIN was dropped from valid namespaces,... X-Git-Tag: 1.31.0-rc.0~35364 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=2b19fa7e3dd5b7b9c2b6daebc05c92ca4a305f35;p=lhc%2Fweb%2Fwiklou.git Fix yet another regression in r71342: NS_MAIN was dropped from valid namespaces, breaking at least opensearch --- diff --git a/includes/Namespace.php b/includes/Namespace.php index 08a943c5d2..a2d438662b 100644 --- a/includes/Namespace.php +++ b/includes/Namespace.php @@ -186,7 +186,7 @@ class MWNamespace { if ( is_null( $mValidNamespaces ) ) { foreach ( array_keys( self::getCanonicalNamespaces() ) as $ns ) { - if ( $ns > 0 ) { + if ( $ns >= 0 ) { $mValidNamespaces[] = $ns; } }