Index: trunk/phase3/includes/HistoryPage.php |
— | — | @@ -590,7 +590,7 @@ |
591 | 591 | global $wgLang; |
592 | 592 | $date = $wgLang->timeanddate( wfTimestamp(TS_MW, $rev->getTimestamp()), true ); |
593 | 593 | $date = htmlspecialchars( $date ); |
594 | | - if( !$rev->isDeleted( Revision::DELETED_TEXT ) ) { |
| 594 | + if ( $rev->userCan( Revision::DELETED_TEXT ) ) { |
595 | 595 | $link = $this->getSkin()->link( |
596 | 596 | $this->title, |
597 | 597 | $date, |
— | — | @@ -599,8 +599,11 @@ |
600 | 600 | array( 'known', 'noclasses' ) |
601 | 601 | ); |
602 | 602 | } else { |
603 | | - $link = "<span class=\"history-deleted\">$date</span>"; |
| 603 | + $link = $date; |
604 | 604 | } |
| 605 | + if ( $rev->isDeleted( Revision::DELETED_TEXT ) ) { |
| 606 | + $link = "<span class=\"history-deleted\">$link</span>"; |
| 607 | + } |
605 | 608 | return $link; |
606 | 609 | } |
607 | 610 | |
Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -604,16 +604,19 @@ |
605 | 605 | |
606 | 606 | $comment = $wgContLang->getDirMark() . $sk->revComment( $rev, false, true ); |
607 | 607 | $date = $wgLang->timeanddate( wfTimestamp( TS_MW, $row->rev_timestamp ), true ); |
608 | | - if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { |
609 | | - $d = '<span class="history-deleted">' . $date . '</span>'; |
610 | | - } else { |
| 608 | + if( $rev->userCan( Revision::DELETED_TEXT ) ) { |
611 | 609 | $d = $sk->linkKnown( |
612 | 610 | $page, |
613 | 611 | htmlspecialchars($date), |
614 | 612 | array(), |
615 | 613 | array( 'oldid' => intval( $row->rev_id ) ) |
616 | 614 | ); |
| 615 | + } else { |
| 616 | + $d = $date; |
617 | 617 | } |
| 618 | + if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { |
| 619 | + $d = '<span class="history-deleted">' . $d . '</span>'; |
| 620 | + } |
618 | 621 | |
619 | 622 | if( $this->target == 'newbies' ) { |
620 | 623 | $userlink = ' . . ' . $sk->userLink( $row->rev_user, $row->rev_user_text ); |