From fe194d9d4ac0e08d86b100103249e16651a2d4dd Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 5 Dec 2006 01:35:41 +0000 Subject: [PATCH] Revert r17964 again; accidentally restored that breakage while restoring Special:Contributions --- 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