Merge "Replace Parser::getFunctionLang() with ::getTargetLanguage()"

This commit is contained in:
jenkins-bot 2022-11-16 21:50:41 +00:00 committed by Gerrit Code Review
commit acb8030591

View file

@ -504,7 +504,7 @@ class ParserFunctions {
$langObject = $services->getLanguageFactory()->getLanguage( $language );
} else {
// use wiki's content language
$langObject = $parser->getFunctionLang();
$langObject = $parser->getTargetLanguage();
// $ttl is passed by reference, which doesn't work right on stub objects
StubObject::unstub( $langObject );
}