Pass the language code to the MessagesPreLoad hook
authorJack Phoenix <jack@countervandalism.net>
Sun, 8 Jan 2017 00:34:22 +0000 (02:34 +0200)
committerJack Phoenix <jack@countervandalism.net>
Sun, 8 Jan 2017 00:34:22 +0000 (02:34 +0200)
commit38c0e0410a24bfff30faf3d5865d784395089197
treebda995ed3620117833377260e1c05b3720746850
parentd6423137639590a19580198429d7845388943e39
Pass the language code to the MessagesPreLoad hook

So that extensions like MessageCommons can try to use this (and
$wgLanguageCode) instead of $wgLang->getCode()/$wgContLang->getCode(), as
the latter ones cause fatals and recursion, at least with the Gadgets
extension also enabled at the same time.

Change-Id: If71fe1ded26c7a1c771128397783783ad5715b00
docs/hooks.txt
includes/cache/MessageCache.php