X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FNamespace.php;h=5c8e63b74d489f20ed40b23be6e064e3a0f6d845;hb=6d4f5d142f28ade566dd6cd97af129c582e6f27b;hp=8001b415ae74db193ae90f3da59bd720f2dd783e;hpb=b65669ff7adbbde55872a8ddd93214a9e1df75c6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Namespace.php b/includes/Namespace.php index 8001b415ae..5c8e63b74d 100644 --- a/includes/Namespace.php +++ b/includes/Namespace.php @@ -334,7 +334,7 @@ class MWNamespace { public static function getContentNamespaces() { global $wgContentNamespaces; if ( !is_array( $wgContentNamespaces ) || $wgContentNamespaces === array() ) { - return NS_MAIN; + return array( NS_MAIN ); } elseif ( !in_array( NS_MAIN, $wgContentNamespaces ) ) { // always force NS_MAIN to be part of array (to match the algorithm used by isContent) return array_merge( array( NS_MAIN ), $wgContentNamespaces );