* Fix regression in ordering of namespaces
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 26 Jul 2006 20:37:11 +0000 (20:37 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 26 Jul 2006 20:37:11 +0000 (20:37 +0000)
RELEASE-NOTES
languages/Language.php

index ee165cb..0ef064d 100644 (file)
@@ -100,6 +100,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   profiler during maintenance scripts.
 * Added "serialized" directory, for storing precompiled data in serialized form.
 * Fix regression in auto-set NS_PROJECT_TALK namespace
+* Fix regression in ordering of namespaces
 
 
 == Languages updated ==
index 34cc94a..990fed5 100644 (file)
@@ -1473,6 +1473,10 @@ class Language {
                        }
                        $this->namespaceNames[NS_PROJECT_TALK] = $talk;
                }
+               
+               # The above mixing may leave namespaces out of canonical order.
+               # Re-order by namespace ID number...
+               ksort( $this->namespaceNames );
 
                # Put namespace names and aliases into a hashtable.
                # If this is too slow, then we should arrange it so that it is done