Index: trunk/phase3/includes/Article.php |
— | — | @@ -1033,10 +1033,11 @@ |
1034 | 1034 | # tents of 'pagetitle-view-mainpage' instead of the default (if |
1035 | 1035 | # that's not empty). |
1036 | 1036 | # This message always exists because it is in the i18n files |
1037 | | - if ( $this->mTitle->equals( Title::newMainPage() ) |
1038 | | - && ( $m = wfMsgForContent( 'pagetitle-view-mainpage' ) ) !== '' ) |
1039 | | - { |
1040 | | - $wgOut->setHTMLTitle( $m ); |
| 1037 | + if ( $this->mTitle->equals( Title::newMainPage() ) ) { |
| 1038 | + $msg = wfMessage( 'pagetitle-view-mainpage' )->inContentLanguage(); |
| 1039 | + if ( !$msg->isDisabled() ) { |
| 1040 | + $wgOut->setHTMLTitle( $msg->title( $this->mTitle )->text() ); |
| 1041 | + } |
1041 | 1042 | } |
1042 | 1043 | |
1043 | 1044 | # Now that we've filled $this->mParserOutput, we know whether |