From 1ab6cd9b7c2e202b3d518ee34aa5c7b7cf2aadf2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 11 Apr 2008 17:01:40 +0000 Subject: [PATCH] Don't link to new page diffs --- includes/SpecialContributions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'] . ')'; -- 2.20.1