http://www.mediawiki.org/wiki/Special:Code/MediaWiki/71867

Revision: 71867
Author:   werdna
Date:     2010-08-29 03:03:28 +0000 (Sun, 29 Aug 2010)

Log Message:
-----------
Fix bug introduced in untested r71576. getNamespaces() did not use 
getCanonicalNamespaces for backwards-compatibility with 1.16wmf4 :-)

Modified Paths:
--------------
    trunk/phase3/languages/Language.php

Modified: trunk/phase3/languages/Language.php
===================================================================
--- trunk/phase3/languages/Language.php 2010-08-29 03:02:17 UTC (rev 71866)
+++ trunk/phase3/languages/Language.php 2010-08-29 03:03:28 UTC (rev 71867)
@@ -262,6 +262,8 @@
                        }
                        
                        # 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] );



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to