From: Brion Vibber Date: Tue, 28 Nov 2006 04:44:09 +0000 (+0000) Subject: Revert r17964, breaks diff links for no apparent reason. X-Git-Tag: 1.31.0-rc.0~55052 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=d27595efff20fb815e240efaee4cfab28e27e7e3;p=lhc%2Fweb%2Fwiklou.git Revert r17964, breaks diff links for no apparent reason. --- 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' ) . ')';