diff --git a/includes/SpecialCiteThisPage.php b/includes/SpecialCiteThisPage.php index a7ea8f02..b2de0796 100644 --- a/includes/SpecialCiteThisPage.php +++ b/includes/SpecialCiteThisPage.php @@ -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" ) ) {