From: Tim Starling Date: Sun, 7 Jan 2007 14:22:32 +0000 (+0000) Subject: Correct behaviour for title-case key input. X-Git-Tag: 1.31.0-rc.0~54605 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=6b914045d77a2398084d4b572bc636e7f1f7ebf2;p=lhc%2Fweb%2Fwiklou.git Correct behaviour for title-case key input. --- diff --git a/includes/MessageCache.php b/includes/MessageCache.php index 830840bf6a..0073b2eeb1 100644 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -444,6 +444,9 @@ class MessageCache { $message = false; + # Normalise title-case input + $key = $wgContLang->lcfirst( $key ); + # Try the MediaWiki namespace if( !$this->mDisable && $useDB ) { $title = $wgContLang->ucfirst( $key );