X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialDeletedContributions.php;h=b2cd8c0af7f742407b99abfe9bf196c3a432aeab;hb=2e3c42dbb4783cb23fdc354471602695db7a6cd5;hp=40d89625eb255a8d60ba39c3ac9b81065f428f06;hpb=7af7bbe7476996bf60d8d8e48a84687ccd7505df;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index 40d89625eb..b2cd8c0af7 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -28,7 +28,7 @@ use MediaWiki\MediaWikiServices; * Implements Special:DeletedContributions to display archived revisions * @ingroup SpecialPage */ -class DeletedContributionsPage extends SpecialPage { +class SpecialDeletedContributions extends SpecialPage { /** @var FormOptions */ protected $mOpts; @@ -93,7 +93,8 @@ class DeletedContributionsPage extends SpecialPage { $this->getForm(); - $pager = new DeletedContribsPager( $this->getContext(), $target, $opts->getValue( 'namespace' ) ); + $pager = new DeletedContribsPager( $this->getContext(), $target, $opts->getValue( 'namespace' ), + $this->getLinkRenderer() ); if ( !$pager->getNumRows() ) { $out->addWikiMsg( 'nocontribs' ); @@ -113,17 +114,15 @@ class DeletedContributionsPage extends SpecialPage { # If there were contributions, and it was a valid user or IP, show # the appropriate "footer" message - WHOIS tools, etc. - if ( $target != 'newbies' ) { - $message = IP::isIPAddress( $target ) ? - 'sp-contributions-footer-anon' : - 'sp-contributions-footer'; - - if ( !$this->msg( $message )->isDisabled() ) { - $out->wrapWikiMsg( - "", - [ $message, $target ] - ); - } + $message = IP::isIPAddress( $target ) ? + 'sp-contributions-footer-anon' : + 'sp-contributions-footer'; + + if ( !$this->msg( $message )->isDisabled() ) { + $out->wrapWikiMsg( + "", + [ $message, $target ] + ); } }