dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fb5c38
)
Fix fatal when non-ascii message key is normalized
author
Brian Wolff
<bawolff+wn@gmail.com>
Sun, 19 Jul 2015 08:54:35 +0000
(
02:54
-0600)
committer
Aaron 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
patch
|
blob
|
history
diff --git
a/includes/cache/MessageCache.php
b/includes/cache/MessageCache.php
index
f63e0fb
..
67a7461
100644
(file)
--- 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] );