Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -562,12 +562,14 @@ |
563 | 563 | if( $row->rev_id == $row->page_latest ) { |
564 | 564 | $topmarktext .= '<span class="mw-uctop">' . $this->messages['uctop'] . '</span>'; |
565 | 565 | # Add rollback link |
566 | | - if( !$row->page_is_new && $page->quickUserCan( 'rollback' ) && $page->quickUserCan( 'edit' ) ) { |
| 566 | + if( !$row->page_is_new && $page->quickUserCan( 'rollback' ) |
| 567 | + && $page->quickUserCan( 'edit' ) ) |
| 568 | + { |
567 | 569 | $topmarktext .= ' '.$sk->generateRollback( $rev ); |
568 | 570 | } |
569 | 571 | } |
570 | 572 | # Is there a visible previous revision? |
571 | | - if( !$rev->isDeleted( Revision::DELETED_TEXT ) && $rev->getParentId() !== 0 ) { |
| 573 | + if( $rev->userCan( Revision::DELETED_TEXT ) && $rev->getParentId() !== 0 ) { |
572 | 574 | $difftext = $sk->linkKnown( |
573 | 575 | $page, |
574 | 576 | $this->messages['diff'], |