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:30:38 +00:00
parent 28ee42c34a
commit f59757a338

View file

@ -36,7 +36,7 @@ class SpecialMathWikibase extends SpecialPage {
* @inheritDoc
*/
public function execute( $par ) {
global $wgContLanguageCode;
global $wgLanguageCode;
if ( !$this->isWikibaseAvailable() ) {
$out = $this->getOutput();
@ -76,7 +76,7 @@ class SpecialMathWikibase extends SpecialPage {
} else {
$this->logger->debug( "Request qID: " . $requestId );
try {
$info = $this->wikibase->fetchWikibaseFromId( $requestId, $wgContLanguageCode );
$info = $this->wikibase->fetchWikibaseFromId( $requestId, $wgLanguageCode );
$this->logger->debug( "Successfully fetched information for qID: " . $requestId );
self::buildPageRepresentation( $info, $requestId, $output );
} catch ( Exception $e ) {