From 36dc7b46064444f16f1a184ac8e23628d04e09e2 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Wed, 28 Sep 2022 16:17:50 -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). Bug: T318860 --- includes/LatestDiscussions.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/LatestDiscussions.class.php b/includes/LatestDiscussions.class.php index b061fc0..3217eb1 100644 --- a/includes/LatestDiscussions.class.php +++ b/includes/LatestDiscussions.class.php @@ -176,7 +176,7 @@ public function renderComments($pages){ $commentFormatedDate = $commentTime->getRelativeTimestamp ( null, null, null, $chosenIntervals ); } else { // parser may not be started yet, so this doens't works : - // $lang = self::$parser->getFunctionLang (); + // $lang = self::$parser->getTargetLanguage (); // self::$parser->getUser () $lang = RequestContext::getMain()->getLanguage(); $user = RequestContext::getMain()->getUser();