Skip to content

Commit

Permalink
Update SRF_Calendar.php
Browse files Browse the repository at this point in the history
Replace Language::factory, which has been deprecated since 1.35 (removed by 1.41).
  • Loading branch information
D-Groenewegen committed Jun 12, 2024
1 parent 647d501 commit a56bbd1
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 a56bbd1

Please sign in to comment.