r61709 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61708‎ | r61709 | r61710 >
Date:09:10, 30 January 2010
Author:aaron
Status:ok
Tags:
Comment:
* Show diff link for DELETED_TEXT revs if user can see them (like history)
* Broke long line
Modified paths:
  • /trunk/phase3/includes/specials/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialContributions.php
@@ -562,12 +562,14 @@
563563 if( $row->rev_id == $row->page_latest ) {
564564 $topmarktext .= '<span class="mw-uctop">' . $this->messages['uctop'] . '</span>';
565565 # 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+ {
567569 $topmarktext .= ' '.$sk->generateRollback( $rev );
568570 }
569571 }
570572 # 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 ) {
572574 $difftext = $sk->linkKnown(
573575 $page,
574576 $this->messages['diff'],

Status & tagging log