Linker: Use RequestContext::getMain()->getLanguage() instead of $wgLang
authorFomafix <fomafix@googlemail.com>
Tue, 16 Oct 2018 09:46:24 +0000 (11:46 +0200)
committerFomafix <fomafix@googlemail.com>
Fri, 21 Dec 2018 16:41:30 +0000 (17:41 +0100)
commitcf568ba823e322628dc1d10b785be244c0a21a20
tree20536353fdbaf260e63c0858119a7f44d95501e3
parentdffbbdbe3955b7ca97e787e9b95bc2e1a4d95fbd
Linker: Use RequestContext::getMain()->getLanguage() instead of $wgLang

$wgLang can be an StubUserLang object. This change allows to force a
Language object.

Change-Id: I93c79b985a2ee49648c678844eef189126a4d765
includes/Linker.php