Correct behaviour for title-case key input.
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 7 Jan 2007 14:22:32 +0000 (14:22 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 7 Jan 2007 14:22:32 +0000 (14:22 +0000)
includes/MessageCache.php

index 830840b..0073b2e 100644 (file)
@@ -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 );