From e93215c9b05399ba52cd67844a440e0c3f1d8771 Mon Sep 17 00:00:00 2001 From: Matthew Verive Date: Fri, 19 Jan 2024 19:58:44 -0600 Subject: [PATCH] Update FluentTemplate.php This possibly fixes #13 - needs to be tested first though, this is just a very rough first pass. --- Fluent/includes/FluentTemplate.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Fluent/includes/FluentTemplate.php b/Fluent/includes/FluentTemplate.php index b506a2e..4e65d41 100644 --- a/Fluent/includes/FluentTemplate.php +++ b/Fluent/includes/FluentTemplate.php @@ -127,9 +127,10 @@ protected function getLogo( $id = 'p-logo', $imageOnly = false ) { ] + Linker::tooltipAndAccesskeyAttribs( 'p-logo' ) ); if ( !$imageOnly ) { - $language = $this->getSkin()->getLanguage(); - $siteTitle = $language->convert( $this->getMsg( 'sitetitle' )->escaped() ); - + $siteTitle = MediaWikiServices::getInstance()-> + getLanguageConverterFactory()-> + getLanguageConverter()->convert( $this->getMsg( 'sitetitle' )->escaped() ); + $html .= Html::rawElement( 'a', [