mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-14 19:31:43 +00:00
Merge "Replace Parser::getFunctionLang() with ::getTargetLanguage()"
This commit is contained in:
commit
acb8030591
|
@ -504,7 +504,7 @@ class ParserFunctions {
|
||||||
$langObject = $services->getLanguageFactory()->getLanguage( $language );
|
$langObject = $services->getLanguageFactory()->getLanguage( $language );
|
||||||
} else {
|
} else {
|
||||||
// use wiki's content language
|
// use wiki's content language
|
||||||
$langObject = $parser->getFunctionLang();
|
$langObject = $parser->getTargetLanguage();
|
||||||
// $ttl is passed by reference, which doesn't work right on stub objects
|
// $ttl is passed by reference, which doesn't work right on stub objects
|
||||||
StubObject::unstub( $langObject );
|
StubObject::unstub( $langObject );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue