Unmerging r71867. Merge-conflicts with some things Nikerabbit was doing. He broke...
authorAndrew Garrett <werdna@users.mediawiki.org>
Sun, 29 Aug 2010 03:08:15 +0000 (03:08 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Sun, 29 Aug 2010 03:08:15 +0000 (03:08 +0000)
languages/Language.php

index a5b6628..71793e2 100644 (file)
@@ -262,8 +262,6 @@ 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] );