diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:32:59 -0400 |
commit | 6dc1997577fab2c366781fd7048144935afa0012 (patch) | |
tree | 8918d28c7ab4342f0738985e37af1dfc42d0e93a /includes/specials/SpecialDeletedContributions.php | |
parent | 150f94f051128f367bc89f6b7e5f57eb2a69fc62 (diff) | |
parent | fa89acd685cb09cdbe1c64cbb721ec64975bbbc1 (diff) |
Merge commit 'fa89acd'
# Conflicts:
# .gitignore
# extensions/ArchInterWiki.sql
Diffstat (limited to 'includes/specials/SpecialDeletedContributions.php')
-rw-r--r-- | includes/specials/SpecialDeletedContributions.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index fb85942d..44352a78 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 ); |