From f11b1099d0980e2a48fc91f485b68ce10a072cc1 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Wed, 28 Sep 2022 15:59:38 -0400 Subject: [PATCH] Replace Parser::getFunctionLang() with ::getTargetLanguage() Parser::getFunctionLang() is being deprecated. These two functions have been identical since 7df3473cfea59df53debb7a9eefffed8a7f20fb3 in MW 1.19 (2012) and this extension already requires MW >= 1.35. Bug: T318860 Change-Id: I87a7ceedce173f6de4bb6722ffe594273c7b0359 --- includes/ParserFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ParserFunctions.php b/includes/ParserFunctions.php index a15a7f16..1990bdd9 100644 --- a/includes/ParserFunctions.php +++ b/includes/ParserFunctions.php @@ -518,7 +518,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 ); }