Index: branches/wmf/1.16wmf4/languages/Language.php |
— | — | @@ -258,7 +258,10 @@ |
259 | 259 | } |
260 | 260 | |
261 | 261 | # Sometimes a language will be localised but not actually exist on this wiki. |
262 | | - $validNamespaces = MWNamespace::getValidNamespaces(); |
| 262 | + # Hacked to work with 1.16wmf4 by Andrew, 2010-08-20 |
| 263 | + global $wgCanonicalNamespaceNames; |
| 264 | + $validNamespaces = array_keys($wgCanonicalNamespaceNames); |
| 265 | + $validNamespaces[] = NS_MAIN; |
263 | 266 | foreach( $this->namespaceNames as $key => $text ) { |
264 | 267 | if ( ! in_array( $key, $validNamespaces ) ) { |
265 | 268 | unset( $this->namespaceNames[$key] ); |