From cf501475fd8e72b0605f1f3c2c396302a9b608d5 Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Sun, 19 Jul 2015 02:54:35 -0600 Subject: [PATCH] Fix fatal when non-ascii message key is normalized Missing global declaration when using $wgContLang in MessageCache::normalizeKey Change-Id: Ia1c1f41244fd5629527b99a5f2038f607cff42c4 Follow-up: 47e0f0c3 --- includes/cache/MessageCache.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index f63e0fb783..67a74614c6 100644 --- a/includes/cache/MessageCache.php +++ b/includes/cache/MessageCache.php @@ -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] ); -- 2.20.1