r33138 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r33137‎ | r33138 | r33139 >
Date:17:01, 11 April 2008
Author:aaron
Status:old
Tags:
Comment:
Don't link to new page diffs
Modified paths:
  • /trunk/phase3/includes/SpecialContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialContributions.php
@@ -147,7 +147,8 @@
148148 }
149149
150150 }
151 - if( $rev->userCan( Revision::DELETED_TEXT ) ) {
 151+ # Is there a visable previous revision?
 152+ if( $rev->userCan(Revision::DELETED_TEXT) && $rev->getParentId() !== 0 ) {
152153 $difftext = '(' . $sk->makeKnownLinkObj( $page, $this->messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')';
153154 } else {
154155 $difftext = '(' . $this->messages['diff'] . ')';

Status & tagging log