Topic on Skin talk:Minerva Neue

Don't call $output->setPageTitle() with empty string

2
140.213.165.50 (talkcontribs)

With Minerva skin activated and not logged in, on homepage I found that the page title is empty, including the title bar (in the browser). Leaving weird title there - My Wiki Site.

The cause is here: /skins/MinervaNeue/includes/Skins/SkinMinerva.php there is:

$out->setPageTitle( $pageTitle );

It should be wrapped with a conditional:

if ( strlen($pageTitle) ) {

    $out->setPageTitle( $pageTitle );

}

Quick fix is appreciated. Thanks.

Jdlrobson (talkcontribs)
Reply to "Don't call $output->setPageTitle() with empty string"