mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CiteThisPage
synced 2024-11-14 19:25:08 +00:00
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:
parent
115fa5c9e8
commit
11b28c468f
|
@ -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" ) ) {
|
||||
|
|
Loading…
Reference in a new issue