Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -39,7 +39,8 @@ |
40 | 40 | // Precache various messages |
41 | 41 | if( !isset( $this->message ) ) { |
42 | 42 | $messages = array( 'revertmerge', 'protect_change', 'unblocklink', 'change-blocklink', |
43 | | - 'revertmove', 'undeletelink', 'revdel-restore', 'rev-delundel', 'hist', 'pipe-separator' ); |
| 43 | + 'revertmove', 'undeletelink', 'revdel-restore', 'rev-delundel', 'hist', 'diff', |
| 44 | + 'pipe-separator' ); |
44 | 45 | foreach( $messages as $msg ) { |
45 | 46 | $this->message[$msg] = wfMsgExt( $msg, array( 'escapenoentities' ) ); |
46 | 47 | } |
— | — | @@ -291,8 +292,17 @@ |
292 | 293 | foreach( $Ids as $n => $id ) { |
293 | 294 | $revParams .= '&' . urlencode($key) . '[]=' . urlencode($id); |
294 | 295 | } |
295 | | - $revert = '(' . $this->skin->makeKnownLinkObj( $revdel, $this->message['revdel-restore'], |
296 | | - 'target=' . $title->getPrefixedUrl() . $revParams ) . ')'; |
| 296 | + $revert = array(); |
| 297 | + // Diff link for single rev deletions |
| 298 | + if( $key === 'oldid' && count($Ids) == 1 ) { |
| 299 | + $token = urlencode( $wgUser->editToken( intval($Ids[0]) ) ); |
| 300 | + $revert[] = $this->skin->makeKnownLinkObj( $title, $this->message['diff'], |
| 301 | + 'diff='.intval($Ids[0])."&unhide=1&token=$token" ); |
| 302 | + } |
| 303 | + // View/modify link... |
| 304 | + $revert[] = $this->skin->makeKnownLinkObj( $revdel, $this->message['revdel-restore'], |
| 305 | + 'target=' . $title->getPrefixedUrl() . $revParams ); |
| 306 | + $revert = '(' . implode(' | ',$revert) . ')'; |
297 | 307 | } |
298 | 308 | // Hidden log items, give review link |
299 | 309 | } else if( self::typeAction($row,array('delete','suppress'),'event','deleterevision') ) { |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -1335,7 +1335,7 @@ |
1336 | 1336 | 'logdelete-logentry' => 'changed event visibility of [[$1]]', |
1337 | 1337 | 'revdelete-success' => "'''Revision visibility successfully set.'''", |
1338 | 1338 | 'logdelete-success' => "'''Log visibility successfully set.'''", |
1339 | | -'revdel-restore' => 'Change visibility', |
| 1339 | +'revdel-restore' => 'change visibility', |
1340 | 1340 | 'pagehist' => 'Page history', |
1341 | 1341 | 'deletedhist' => 'Deleted history', |
1342 | 1342 | 'revdelete-content' => 'content', |