From 2b19fa7e3dd5b7b9c2b6daebc05c92ca4a305f35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Mon, 23 Aug 2010 08:46:13 +0000 Subject: [PATCH] Fix yet another regression in r71342: NS_MAIN was dropped from valid namespaces, breaking at least opensearch --- includes/Namespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.20.1