X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRecentchangeslinked.php;h=181b4db4c9a63d85e8e941ef78a063840c04d71c;hb=2291e9f3bbf22ec1781f7bb0fa4f2776489a2868;hp=d4aef6c0d1cce6b20e855e415c1f5ab901c45aa4;hpb=69240c4b143ef9e01a7f3479349c56e568504ba3;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(); }