From: Andrew Garrett Date: Sun, 29 Aug 2010 03:03:28 +0000 (+0000) Subject: Fix bug introduced in untested r71576. getNamespaces() did not use getCanonicalNamesp... X-Git-Tag: 1.31.0-rc.0~35285 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=41a7f65ee12166d6e1558fa117b5f8e1e37cb144;p=lhc%2Fweb%2Fwiklou.git Fix bug introduced in untested r71576. getNamespaces() did not use getCanonicalNamespaces for backwards-compatibility with 1.16wmf4 :-) --- diff --git a/languages/Language.php b/languages/Language.php index 71793e20bf..a5b66282dc 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -262,6 +262,8 @@ class Language { } # Sometimes a language will be localised but not actually exist on this wiki. + global $wgCanonicalNamespaceNames; + $validNamespaces = array_keys(MWNamespace::getCanonicalNamespaces()); foreach( $this->namespaceNames as $key => $text ) { if ( !isset( $validNamespaces[$key] ) ) { unset( $this->namespaceNames[$key] );