Skip to content

Commit

Permalink
Replace Language::factory (#839)
Browse files Browse the repository at this point in the history
* Update SRF_Calendar.php

Replace Language::factory, which has been deprecated since 1.35 (removed by 1.41).
  • Loading branch information
D-Groenewegen authored Jun 12, 2024
1 parent c85d6c6 commit e94cb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formats/calendar/SRF_Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] );
Expand Down

0 comments on commit e94cb8a

Please sign in to comment.