Fix fatal when non-ascii message key is normalized
authorBrian Wolff <bawolff+wn@gmail.com>
Sun, 19 Jul 2015 08:54:35 +0000 (02:54 -0600)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 19 Jul 2015 10:01:55 +0000 (10:01 +0000)
Missing global declaration when using $wgContLang in
MessageCache::normalizeKey

Change-Id: Ia1c1f41244fd5629527b99a5f2038f607cff42c4
Follow-up: 47e0f0c3

includes/cache/MessageCache.php

index f63e0fb..67a7461 100644 (file)
@@ -137,6 +137,7 @@ class MessageCache {
         * @return string Normalized message key
         */
        public static function normalizeKey( $key ) {
+               global $wgContLang;
                $lckey = strtr( $key, ' ', '_' );
                if ( ord( $lckey ) < 128 ) {
                        $lckey[0] = strtolower( $lckey[0] );