diff --git a/includes/ParserFunctions.php b/includes/ParserFunctions.php index 357fd455..e686e070 100644 --- a/includes/ParserFunctions.php +++ b/includes/ParserFunctions.php @@ -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 ); }