* Initial-lowercase prefix checks in namespaceDupes.php now actually work.
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 18 Oct 2007 14:22:02 +0000 (14:22 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 18 Oct 2007 14:22:02 +0000 (14:22 +0000)
Not sure how that array_values() snuck in, kind of embarassing. :P

RELEASE-NOTES
maintenance/namespaceDupes.php

index bc49cb7..e245040 100644 (file)
@@ -107,6 +107,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 11343) If the database is read-only, ensure that undelete fails.
 * (bug 11690) Show revert link for page moves in Special:Log to allowed users
   only
+* Initial-lowercase prefix checks in namespaceDupes.php now actually work.
+
 
 === API changes in 1.12 ===
 
index 16796ba..ab889c1 100644 (file)
@@ -78,7 +78,7 @@ class NamespaceConflictChecker {
                if( !$wgCapitalLinks ) {
                        // We'll need to check for lowercase keys as well,
                        // since we're doing case-sensitive searches in the db.
-                       foreach( array_values( $spaces ) as $name => $ns ) {
+                       foreach( $spaces as $name => $ns ) {
                                $lcname = $wgContLang->lcfirst( $name );
                                $spaces[$lcname] = $ns;
                        }