X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRecentchangeslinked.php;h=181b4db4c9a63d85e8e941ef78a063840c04d71c;hb=6e65e0ab0d0dc5e7e0ea000f024a3481da35505b;hp=d4aef6c0d1cce6b20e855e415c1f5ab901c45aa4;hpb=e440dc9385cbed23ab7148932b925a1bf8e78785;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRecentchangeslinked.php b/includes/specials/SpecialRecentchangeslinked.php index d4aef6c0d1..181b4db4c9 100644 --- a/includes/specials/SpecialRecentchangeslinked.php +++ b/includes/specials/SpecialRecentchangeslinked.php @@ -65,7 +65,6 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { $outputPage->addHTML( Html::errorBox( $this->msg( 'allpagesbadtitle' )->parse() ) ); - return false; } @@ -295,12 +294,19 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { } protected function outputNoResults() { - if ( $this->getTargetTitle() === false ) { + $targetTitle = $this->getTargetTitle(); + if ( $targetTitle === false ) { $this->getOutput()->addHTML( - '
' . + '
' . $this->msg( 'recentchanges-notargetpage' )->parse() . '
' ); + } elseif ( !$targetTitle || $targetTitle->isExternal() ) { + $this->getOutput()->addHTML( + '
' . + $this->msg( 'allpagesbadtitle' )->parse() . + '
' + ); } else { parent::outputNoResults(); }