Merge "Show title on the page named '0'"

This commit is contained in:
jenkins-bot 2017-07-31 19:44:19 +00:00 committed by Gerrit Code Review
commit ebb0ef89b7
1 changed files with 2 additions and 1 deletions

View File

@ -797,7 +797,8 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
$heading = $this->getUserPageHelper()->getPageUser()->getName();
} else {
$pageTitle = $this->getOutput()->getPageTitle();
if ( $pageTitle ) {
// Loose comparison with '!=' is intentional, to catch null and false too, but not '0'
if ( $pageTitle != '' ) {
$heading = $pageTitle;
}
}