mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-27 17:01:07 +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
28ee42c34a
commit
f59757a338
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue