Index: trunk/phase3/languages/Language.php |
— | — | @@ -245,12 +245,12 @@ |
246 | 246 | */ |
247 | 247 | function getNamespaces() { |
248 | 248 | if ( is_null( $this->namespaceNames ) ) { |
249 | | - global $wgMetaNamespace, $wgMetaNamespaceTalk; |
| 249 | + global $wgMetaNamespace, $wgMetaNamespaceTalk, $wgExtraNamespaces; |
250 | 250 | |
251 | 251 | $this->namespaceNames = self::$dataCache->getItem( $this->mCode, 'namespaceNames' ); |
252 | 252 | $validNamespaces = MWNamespace::getCanonicalNamespaces(); |
253 | 253 | |
254 | | - $this->namespaceNames = $validNamespaces + $this->namespaceNames; |
| 254 | + $this->namespaceNames = $wgExtraNamespaces + $this->namespaceNames + $validNamespaces; |
255 | 255 | |
256 | 256 | $this->namespaceNames[NS_PROJECT] = $wgMetaNamespace; |
257 | 257 | if ( $wgMetaNamespaceTalk ) { |