From b451aff18fe05e0fb8d95163fabfce9a35ea2173 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 8 Dec 2005 20:25:45 +0000 Subject: [PATCH] * Format deleted revisions correctly --- includes/SpecialContributions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 00864da5e5..75f3eb0081 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -374,14 +374,14 @@ function ucListEdit( $sk, $row ) { } } - if( $row->rev_deleted && !$wgUser->isAllowed( 'undelete' ) ) { + if( $row->rev_deleted && !$wgUser->isAllowed( 'delete' ) ) { $difftext = '(' . $messages['diff'] . ')'; } else { $difftext = '(' . $sk->makeKnownLinkObj( $page, $messages['diff'], 'diff=prev&oldid='.$row->rev_id ) . ')'; } $histlink='('.$sk->makeKnownLinkObj( $page, $messages['hist'], 'action=history' ) . ')'; - $comment = $sk->commentBlock( $row->rev_comment, $page ); + $comment = $sk->commentBlock( $row->rev_comment, $page, (bool)$row->rev_deleted ); $d = $wgLang->timeanddate( wfTimestamp(TS_MW, $row->rev_timestamp), true ); if( $row->rev_minor_edit ) { @@ -392,7 +392,7 @@ function ucListEdit( $sk, $row ) { $ret = "{$d} {$histlink} {$difftext} {$mflag} {$link} {$comment} {$topmarktext}"; if( $row->rev_deleted ) { - $ret = '' . $ret . ' ' . htmlspecialchars( wfMsg( 'deletedrev' ) ); + $ret = "$ret"; } $ret = "
  • $ret
  • \n"; wfProfileOut( $fname ); -- 2.20.1