From: Brian Wolff Date: Sun, 19 Jul 2015 08:54:35 +0000 (-0600) Subject: Fix fatal when non-ascii message key is normalized X-Git-Tag: 1.31.0-rc.0~10717 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=cf501475fd8e72b0605f1f3c2c396302a9b608d5;p=lhc%2Fweb%2Fwiklou.git Fix fatal when non-ascii message key is normalized Missing global declaration when using $wgContLang in MessageCache::normalizeKey Change-Id: Ia1c1f41244fd5629527b99a5f2038f607cff42c4 Follow-up: 47e0f0c3 --- 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] );