Index: trunk/phase3/languages/Language.php |
— | — | @@ -262,8 +262,6 @@ |
263 | 263 | } |
264 | 264 | |
265 | 265 | # Sometimes a language will be localised but not actually exist on this wiki. |
266 | | - global $wgCanonicalNamespaceNames; |
267 | | - $validNamespaces = array_keys(MWNamespace::getCanonicalNamespaces()); |
268 | 266 | foreach( $this->namespaceNames as $key => $text ) { |
269 | 267 | if ( !isset( $validNamespaces[$key] ) ) { |
270 | 268 | unset( $this->namespaceNames[$key] ); |