From ee881d9e0ec157532d1cfcab231b351e32cc91fe Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 30 Jan 2010 09:10:03 +0000 Subject: [PATCH] * Show diff link for DELETED_TEXT revs if user can see them (like history) * Broke long line --- includes/specials/SpecialContributions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index cc3fb01f8f..392f4332e7 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -562,12 +562,14 @@ class ContribsPager extends ReverseChronologicalPager { if( $row->rev_id == $row->page_latest ) { $topmarktext .= '' . $this->messages['uctop'] . ''; # Add rollback link - if( !$row->page_is_new && $page->quickUserCan( 'rollback' ) && $page->quickUserCan( 'edit' ) ) { + if( !$row->page_is_new && $page->quickUserCan( 'rollback' ) + && $page->quickUserCan( 'edit' ) ) + { $topmarktext .= ' '.$sk->generateRollback( $rev ); } } # Is there a visible previous revision? - if( !$rev->isDeleted( Revision::DELETED_TEXT ) && $rev->getParentId() !== 0 ) { + if( $rev->userCan( Revision::DELETED_TEXT ) && $rev->getParentId() !== 0 ) { $difftext = $sk->linkKnown( $page, $this->messages['diff'], -- 2.20.1