From: Aaron Schulz Date: Fri, 11 Apr 2008 17:01:40 +0000 (+0000) Subject: Don't link to new page diffs X-Git-Tag: 1.31.0-rc.0~48441 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=1ab6cd9b7c2e202b3d518ee34aa5c7b7cf2aadf2;p=lhc%2Fweb%2Fwiklou.git Don't link to new page diffs --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 44df343e54..a307df138b 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -147,7 +147,8 @@ class ContribsPager extends ReverseChronologicalPager { } } - if( $rev->userCan( Revision::DELETED_TEXT ) ) { + # Is there a visable previous revision? + if( $rev->userCan(Revision::DELETED_TEXT) && $rev->getParentId() !== 0 ) { $difftext = '(' . $sk->makeKnownLinkObj( $page, $this->messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')'; } else { $difftext = '(' . $this->messages['diff'] . ')';