Replace $wgContLanguageCode with $wgLanguageCode

$wgContLanguageCode has been an unconfigurable copy of $wgLanguageCode
since 2006 (MW 1.8).

Bug: T247674
Change-Id: I1d2ec1e63320086fdf9ab7c6321f949c99c1ab2a
This commit is contained in:
Timo Tijhof 2020-03-14 19:33:45 +00:00
parent 115fa5c9e8
commit 11b28c468f

View file

@ -138,10 +138,10 @@ class SpecialCiteThisPage extends FormSpecialPage {
# and the text moved into SpecialCite.i18n.php
# This code is kept for b/c in case an installation has its own file "citethispage-content-xx"
# for a previously not supported language.
global $wgContLanguageCode;
global $wgLanguageCode;
$dir = __DIR__ . '/../';
$code = MediaWikiServices::getInstance()->getContentLanguage()
->lc( $wgContLanguageCode );
->lc( $wgLanguageCode );
if ( file_exists( "${dir}citethispage-content-$code" ) ) {
$msg = file_get_contents( "${dir}citethispage-content-$code" );
} elseif ( file_exists( "${dir}citethispage-content" ) ) {