r26711 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26710‎ | r26711 | r26712 >
Date:19:41, 14 October 2007
Author:aaron
Status:old
Tags:
Comment:
*Add diff links
Modified paths:
  • /trunk/extensions/DeletedContributions/DeletedContributions_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DeletedContributions/DeletedContributions_body.php
@@ -10,7 +10,7 @@
1111
1212 function __construct( $target, $namespace = false ) {
1313 parent::__construct();
14 - foreach( explode( ' ', 'deletionlog undeletebtn minoreditletter' ) as $msg ) {
 14+ foreach( explode( ' ', 'deletionlog undeletebtn minoreditletter diff' ) as $msg ) {
1515 $this->messages[$msg] = wfMsgExt( $msg, array( 'escape') );
1616 }
1717 $this->target = $target;
@@ -126,6 +126,9 @@
127127
128128 $link = $sk->makeKnownLinkObj( $undelete, htmlspecialchars( $page->getPrefixedText() ), 'target=' . $page->getPrefixedUrl() . '&timestamp=' . $rev->getTimestamp());
129129
 130+ $last = $sk->makeKnownLinkObj( $undelete, $this->messages['diff'],
 131+ "target=" . $page->getPrefixedText() . "&timestamp=" . $row->ar_timestamp . "&diff=prev" );
 132+
130133 $comment = $sk->revComment( $rev );
131134 $d = $wgLang->timeanddate( $rev->getTimestamp(), true );
132135
@@ -144,7 +147,7 @@
145148 }
146149
147150
148 - $ret = "{$link} ({$dellog}) ({$reviewlink}) . . {$mflag} {$pagelink} {$comment}";
 151+ $ret = "{$link} ($last) ({$dellog}) ({$reviewlink}) . . {$mflag} {$pagelink} {$comment}";
149152 if( $rev->isDeleted( Revision::DELETED_TEXT ) ) {
150153 $ret .= ' ' . wfMsgHtml( 'deletedrev' );
151154 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r26826Cleanup for r26711:...brion15:33, 18 October 2007

Status & tagging log