r22486 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22485‎ | r22486 | r22487 >
Date:23:39, 27 May 2007
Author:river
Status:old
Tags:
Comment:
SpecialPage::exists needs to fold case when checking if a name exists
Modified paths:
  • /trunk/phase3/includes/SpecialPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialPage.php
@@ -280,6 +280,7 @@
281281 * @return boolean: true if a special page exists with this name
282282 */
283283 static function exists( $name ) {
 284+ global $wgContLang;
284285 if ( !self::$mListInitialised ) {
285286 self::initList();
286287 }
@@ -289,7 +290,7 @@
290291
291292 # Remove special pages inline parameters:
292293 $bits = explode( '/', $name );
293 - $name = $bits[0];
 294+ $name = $wgContLang->caseFold($bits[0]);
294295
295296 return
296297 array_key_exists( $name, self::$mList )

Follow-up revisions

RevisionCommit summaryAuthorDate
r22518Merged revisions 22484-22517 via svnmerge from...david22:22, 28 May 2007