Skip to content

Commit

Permalink
Update FluentTemplate.php
Browse files Browse the repository at this point in the history
This possibly fixes #13 - needs to be tested first though, this is just a very rough first pass.
  • Loading branch information
immewnity authored Jan 20, 2024
1 parent 01c1ad1 commit e93215c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Fluent/includes/FluentTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
[
Expand Down

0 comments on commit e93215c

Please sign in to comment.