From 0a5338c98373cd328ca223583bd8921bf647fcce Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Sat, 28 Oct 2023 12:25:07 +0300 Subject: [PATCH] Fix call to Language#convert, thus unbreaking CI Broken by MW core commit 0f935809fd49345cb41340c1f2be6377c697d293, deprecated in MW 1.35 and hard deprecated since MW 1.40. Change-Id: I9ba96a88f7cee44a3130e02feca1742bce48e2df --- includes/AnisaTemplate.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/AnisaTemplate.php b/includes/AnisaTemplate.php index 240d461..76f85fb 100644 --- a/includes/AnisaTemplate.php +++ b/includes/AnisaTemplate.php @@ -4,6 +4,9 @@ * * @ingroup Skins */ + +use MediaWiki\MediaWikiServices; + class AnisaTemplate extends BaseTemplate { /** * Outputs the entire contents of the page @@ -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',