From: Niklas Laxström Date: Mon, 27 Nov 2006 23:20:29 +0000 (+0000) Subject: * Don't mess up diff link when revision is not deleted X-Git-Tag: 1.31.0-rc.0~55057 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=62bce9b30dea7bda728d2b772cb43cc97a86756f;p=lhc%2Fweb%2Fwiklou.git * Don't mess up diff link when revision is not deleted --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index f9fe14ef29..34de8e0aa2 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -400,10 +400,13 @@ function ucListEdit( $sk, $row ) { } } - if( $rev->userCan( Revision::DELETED_TEXT ) ) { - $difftext = '(' . $sk->makeKnownLinkObj( $page, $messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')'; - } else { - $difftext = '(' . $messages['diff'] . ')'; + + 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'] . ')'; + } } $histlink='('.$sk->makeKnownLinkObj( $page, $messages['hist'], 'action=history' ) . ')';