X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialDeletedContributions.php;h=44352a78b5023fa92de9ac8307737e5eaaea19fc;hb=5faabfa1bbf65536ea36108887040198afcb3c82;hp=9e4bbbe532020f0abec10be3065ad66a831ed778;hpb=f772fc34e5862d170c657b30888f6314b0d0c926;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index 9e4bbbe532..44352a78b5 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -88,15 +88,13 @@ class DeletedContribsPager extends IndexPager { * @return ResultWrapper */ function reallyDoQuery( $offset, $limit, $descending ) { - $pager = $this; - $data = array( parent::reallyDoQuery( $offset, $limit, $descending ) ); // This hook will allow extensions to add in additional queries, nearly // identical to ContribsPager::reallyDoQuery. Hooks::run( 'DeletedContribsPager::reallyDoQuery', - array( &$data, $pager, $offset, $limit, $descending ) + array( &$data, $this, $offset, $limit, $descending ) ); $result = array(); @@ -203,14 +201,14 @@ class DeletedContribsPager extends IndexPager { * we're definitely dealing with revision data and we may proceed, if not, we'll leave it * to extensions to subscribe to the hook to parse the row. */ - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); try { $rev = Revision::newFromArchiveRow( $row ); $validRevision = (bool)$rev->getId(); } catch ( Exception $e ) { $validRevision = false; } - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); if ( $validRevision ) { $ret = $this->formatRevisionRow( $row ); @@ -479,7 +477,7 @@ class DeletedContributionsPage extends SpecialPage { if ( ( $id !== null ) || ( $id === null && IP::isIPAddress( $nt->getText() ) ) ) { # Block / Change block / Unblock links if ( $this->getUser()->isAllowed( 'block' ) ) { - if ( $userObj->isBlocked() ) { + if ( $userObj->isBlocked() && $userObj->getBlock()->getType() !== Block::TYPE_AUTO ) { $tools[] = Linker::linkKnown( # Change block link SpecialPage::getTitleFor( 'Block', $nt->getDBkey() ), $this->msg( 'change-blocklink' )->escaped()