Replaced isBlank() with isDisabled() in SpecialPage::outputHeader.
This allows disabling the default headers (*-summary).
Patch set 2: Hid recentchangestext if nothing is written there.
Change-Id: Id3ec2aeb1fab00344908b7bff01929bdafbfd08f
} else {
$msg = $summaryMessageKey;
}
- if ( !$this->msg( $msg )->isBlank() && !$this->including() ) {
+ if ( !$this->msg( $msg )->isDisabled() && !$this->including() ) {
$this->getOutput()->wrapWikiMsg(
"<div class='mw-specialpage-summary'>\n$1\n</div>", $msg );
}
global $wgContLang;
$message = $this->msg( 'recentchangestext' )->inContentLanguage();
- if ( $message->exists() ) {
+ if ( !$message->isDisabled() ) {
$this->getOutput()->addWikiText(
Html::rawElement( 'p',
array( 'lang' => $wgContLang->getCode(), 'dir' => $wgContLang->getDir() ),