Skip to content

Commit

Permalink
Fix call to Language#convert, thus unbreaking CI
Browse files Browse the repository at this point in the history
Broken by MW core commit 0f935809fd49345cb41340c1f2be6377c697d293, deprecated in MW 1.35 and hard deprecated since MW 1.40.

Change-Id: I9ba96a88f7cee44a3130e02feca1742bce48e2df
  • Loading branch information
mary-kate committed Oct 28, 2023
1 parent 157bbd2 commit 0a5338c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion includes/AnisaTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
*
* @ingroup Skins
*/

use MediaWiki\MediaWikiServices;

class AnisaTemplate extends BaseTemplate {
/**
* Outputs the entire contents of the page
Expand Down Expand Up @@ -176,7 +179,9 @@ protected function getLogo( $id = 'p-logo' ) {
*/
protected function getBanner( $id = 'p-banner' ) {
$language = $this->getSkin()->getLanguage();
$siteTitle = $language->convert( $this->getMsg( 'sitetitle' )->escaped() );
$langConv = MediaWikiServices::getInstance()->getLanguageConverterFactory()
->getLanguageConverter( $language );
$siteTitle = $langConv->convert( $this->getMsg( 'sitetitle' )->escaped() );

$html = Html::rawElement(
'a',
Expand Down

0 comments on commit 0a5338c

Please sign in to comment.