Index: trunk/extensions/DeletedContributions/DeletedContributions_body.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | |
12 | 12 | function __construct( $target, $namespace = false ) { |
13 | 13 | parent::__construct(); |
14 | | - foreach( explode( ' ', 'deletionlog undeletebtn minoreditletter' ) as $msg ) { |
| 14 | + foreach( explode( ' ', 'deletionlog undeletebtn minoreditletter diff' ) as $msg ) { |
15 | 15 | $this->messages[$msg] = wfMsgExt( $msg, array( 'escape') ); |
16 | 16 | } |
17 | 17 | $this->target = $target; |
— | — | @@ -126,6 +126,9 @@ |
127 | 127 | |
128 | 128 | $link = $sk->makeKnownLinkObj( $undelete, htmlspecialchars( $page->getPrefixedText() ), 'target=' . $page->getPrefixedUrl() . '×tamp=' . $rev->getTimestamp()); |
129 | 129 | |
| 130 | + $last = $sk->makeKnownLinkObj( $undelete, $this->messages['diff'], |
| 131 | + "target=" . $page->getPrefixedText() . "×tamp=" . $row->ar_timestamp . "&diff=prev" ); |
| 132 | + |
130 | 133 | $comment = $sk->revComment( $rev ); |
131 | 134 | $d = $wgLang->timeanddate( $rev->getTimestamp(), true ); |
132 | 135 | |
— | — | @@ -144,7 +147,7 @@ |
145 | 148 | } |
146 | 149 | |
147 | 150 | |
148 | | - $ret = "{$link} ({$dellog}) ({$reviewlink}) . . {$mflag} {$pagelink} {$comment}"; |
| 151 | + $ret = "{$link} ($last) ({$dellog}) ({$reviewlink}) . . {$mflag} {$pagelink} {$comment}"; |
149 | 152 | if( $rev->isDeleted( Revision::DELETED_TEXT ) ) { |
150 | 153 | $ret .= ' ' . wfMsgHtml( 'deletedrev' ); |
151 | 154 | } |