From d27595efff20fb815e240efaee4cfab28e27e7e3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 28 Nov 2006 04:44:09 +0000 Subject: [PATCH] Revert r17964, breaks diff links for no apparent reason. --- includes/SpecialContributions.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 34de8e0aa2..f9fe14ef29 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -400,13 +400,10 @@ function ucListEdit( $sk, $row ) { } } - - if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { - if ( $rev->userCan( Revision::DELETED_TEXT ) ) { - $difftext .= '(' . $sk->makeKnownLinkObj( $page, $messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')'; - } else { - $difftext .= '(' . $messages['diff'] . ')'; - } + if( $rev->userCan( Revision::DELETED_TEXT ) ) { + $difftext = '(' . $sk->makeKnownLinkObj( $page, $messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')'; + } else { + $difftext = '(' . $messages['diff'] . ')'; } $histlink='('.$sk->makeKnownLinkObj( $page, $messages['hist'], 'action=history' ) . ')'; -- 2.20.1