From 28169fcafcdc82ee110c4d198e4307957de5572c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 18 Oct 2007 14:22:02 +0000 Subject: [PATCH] * Initial-lowercase prefix checks in namespaceDupes.php now actually work. Not sure how that array_values() snuck in, kind of embarassing. :P --- RELEASE-NOTES | 2 ++ maintenance/namespaceDupes.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index bc49cb7c3d..e245040db7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php index 16796ba37c..ab889c1f21 100644 --- a/maintenance/namespaceDupes.php +++ b/maintenance/namespaceDupes.php @@ -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; } -- 2.20.1