From 2abb0728b51c2c45213de82690de32eee8c235f6 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 22 Jun 2009 00:59:17 +0000 Subject: [PATCH] bug 19305 rev_deleted link consistency (greyed-out) --- includes/specials/SpecialContributions.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index f5da505154..c258051efd 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -522,7 +522,7 @@ class ContribsPager extends ReverseChronologicalPager { } } # Is there a visible previous revision? - if( $rev->userCan(Revision::DELETED_TEXT) ) { + if( !$rev->isDeleted(Revision::DELETED_TEXT) ) { $difftext = '(' . $sk->linkKnown( $page, $this->messages['diff'], @@ -544,12 +544,16 @@ class ContribsPager extends ReverseChronologicalPager { $comment = $wgContLang->getDirMark() . $sk->revComment( $rev, false, true ); $date = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true ); - $d = $sk->linkKnown( - $page, - htmlspecialchars($date), - array(), - array( 'oldid' => intval( $row->rev_id ) ) - ); + if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { + $d = '' . $date . ''; + } else { + $d = $sk->linkKnown( + $page, + htmlspecialchars($date), + array(), + array( 'oldid' => intval( $row->rev_id ) ) + ); + } if( $this->target == 'newbies' ) { $userlink = ' . . ' . $sk->userLink( $row->rev_user, $row->rev_user_text ); @@ -558,10 +562,6 @@ class ContribsPager extends ReverseChronologicalPager { $userlink = ''; } - if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { - $d = '' . $d . ''; - } - if( $rev->getParentId() === 0 ) { $nflag = '' . $this->messages['newpageletter'] . ''; } else { -- 2.20.1