From e94cb8a6e97eda94a9ab2e6783b053d0135a1c5a Mon Sep 17 00:00:00 2001 From: D-Groenewegen Date: Wed, 12 Jun 2024 15:20:55 +0200 Subject: [PATCH] Replace Language::factory (#839) * Update SRF_Calendar.php Replace Language::factory, which has been deprecated since 1.35 (removed by 1.41). --- formats/calendar/SRF_Calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/calendar/SRF_Calendar.php b/formats/calendar/SRF_Calendar.php index e05ffe5c..5454ec6d 100644 --- a/formats/calendar/SRF_Calendar.php +++ b/formats/calendar/SRF_Calendar.php @@ -48,7 +48,7 @@ protected function handleParameters( array $params, $outputmode ) { // Store the actual user's language, so we can revert // back to it after printing the calendar. $this->mRealUserLang = clone $wgLang; - $wgLang = Language::factory( trim( $params['lang'] ) ); + $wgLang = MediaWikiServices::getInstance()->getLanguageFactory()->getLanguage( trim( $params['lang'] ) ); } $this->setColors( $params['colors'] );