From: Aaron Schulz Date: Sat, 30 Jan 2010 09:10:03 +0000 (+0000) Subject: * Show diff link for DELETED_TEXT revs if user can see them (like history) X-Git-Tag: 1.31.0-rc.0~38037 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=ee881d9e0ec157532d1cfcab231b351e32cc91fe;p=lhc%2Fweb%2Fwiklou.git * Show diff link for DELETED_TEXT revs if user can see them (like history) * Broke long line --- 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'],