From: River Tarnell Date: Sun, 27 May 2007 23:39:54 +0000 (+0000) Subject: SpecialPage::exists needs to fold case when checking if a name exists X-Git-Tag: 1.31.0-rc.0~52792 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=9a1d167e4a2c34793a75705a10844421e31ea8a3;p=lhc%2Fweb%2Fwiklou.git SpecialPage::exists needs to fold case when checking if a name exists --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index c6133aa26e..5a9376e7e9 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -280,6 +280,7 @@ class SpecialPage * @return boolean: true if a special page exists with this name */ static function exists( $name ) { + global $wgContLang; if ( !self::$mListInitialised ) { self::initList(); } @@ -289,7 +290,7 @@ class SpecialPage # Remove special pages inline parameters: $bits = explode( '/', $name ); - $name = $bits[0]; + $name = $wgContLang->caseFold($bits[0]); return array_key_exists( $name, self::$mList )