X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRecentchangeslinked.php;h=d4aef6c0d1cce6b20e855e415c1f5ab901c45aa4;hb=58858df842f91d9ea1c9f9b6f3c767d8b204886b;hp=358a3098249f4fb16e1d90f915b4e283c176270f;hpb=5c39992e395c314f08fb6ef83d6de7de09258faa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRecentchangeslinked.php b/includes/specials/SpecialRecentchangeslinked.php index 358a309824..d4aef6c0d1 100644 --- a/includes/specials/SpecialRecentchangeslinked.php +++ b/includes/specials/SpecialRecentchangeslinked.php @@ -293,4 +293,16 @@ class SpecialRecentChangesLinked extends SpecialRecentChanges { public function prefixSearchSubpages( $search, $limit, $offset ) { return $this->prefixSearchString( $search, $limit, $offset ); } + + protected function outputNoResults() { + if ( $this->getTargetTitle() === false ) { + $this->getOutput()->addHTML( + '
' . + $this->msg( 'recentchanges-notargetpage' )->parse() . + '
' + ); + } else { + parent::outputNoResults(); + } + } }