A little bit of pre-cache canonicalisation for namespace names, to prevent the common...
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 5 Sep 2006 17:06:48 +0000 (17:06 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 5 Sep 2006 17:06:48 +0000 (17:06 +0000)
languages/Language.php

index bb90d16..c1f46cc 100644 (file)
@@ -1398,6 +1398,9 @@ class Language {
                # Add dependencies to the cache entry
                $cache['deps'] = $deps;
 
+               # Replace spaces with underscores in namespace names
+               $cache['namespaceNames'] = str_replace( ' ', '_', $cache['namespaceNames'] );
+               
                # Save to both caches
                self::$mLocalisationCache[$code] = $cache;
                if ( !$disableCache ) {