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'] );