$outputPage->addHTML(
Html::errorBox( $this->msg( 'allpagesbadtitle' )->parse() )
);
-
return false;
}
}
protected function outputNoResults() {
- if ( $this->getTargetTitle() === false ) {
+ $targetTitle = $this->getTargetTitle();
+ if ( $targetTitle === false ) {
$this->getOutput()->addHTML(
- '<div class="mw-changeslist-notargetpage">' .
+ '<div class="mw-changeslist-empty mw-changeslist-notargetpage">' .
$this->msg( 'recentchanges-notargetpage' )->parse() .
'</div>'
);
+ } elseif ( !$targetTitle || $targetTitle->isExternal() ) {
+ $this->getOutput()->addHTML(
+ '<div class="mw-changeslist-empty mw-changeslist-invalidtargetpage">' .
+ $this->msg( 'allpagesbadtitle' )->parse() .
+ '</div>'
+ );
} else {
parent::outputNoResults();
}