Use sitename as title for the logo

This commit is contained in:
alistair3149 2020-01-06 21:03:36 -05:00
parent bcff2d8027
commit 4f0fb48a76
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C

View file

@ -329,11 +329,13 @@ class CitizenTemplate extends BaseTemplate {
* @return string html
*/
protected function getLogo() {
$siteTitle = $language->convert( $this->getMsg( 'sitetitle' )->escaped() );
$html = Html::rawElement( 'a', [
'href' => $this->data['nav_urls']['mainpage']['href'],
'id' => 'p-logo',
'class' => 'mw-wiki-logo',
] + Linker::tooltipAndAccesskeyAttribs( 'p-logo' ) );
'title' => $siteTitle,
] );
return $html;
}