From: Brion Vibber Date: Thu, 18 Oct 2007 14:22:02 +0000 (+0000) Subject: * Initial-lowercase prefix checks in namespaceDupes.php now actually work. X-Git-Tag: 1.31.0-rc.0~51119 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=28169fcafcdc82ee110c4d198e4307957de5572c;p=lhc%2Fweb%2Fwiklou.git * Initial-lowercase prefix checks in namespaceDupes.php now actually work. Not sure how that array_values() snuck in, kind of embarassing. :P --- 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; }