From 8330c2cb1bdadbebdad0226ea2d352a00dc2a713 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 13 Dec 2007 23:47:52 +0000 Subject: [PATCH] Put timestamp in revert url --- includes/SpecialLog.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index 98bcf7cf87..aa3f66b195 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -409,7 +409,10 @@ class LogViewer { } elseif ( $s->log_action == 'merge' ) { $merge = SpecialPage::getTitleFor( 'Mergehistory' ); $revert = '(' . $this->skin->makeKnownLinkObj( $merge, wfMsg('revertmerge'), - wfArrayToCGI( array('target' => $paramArray[0], 'dest' => $title->getPrefixedText() ) ) ) . ')'; + wfArrayToCGI( + array('target' => $paramArray[0], 'dest' => $title->getPrefixedText(), 'mergepoint' => $paramArray[1] ) + ) + ) . ')'; } elseif ( wfRunHooks( 'LogLine', array( $s->log_type, $s->log_action, $title, $paramArray, &$comment, &$revert ) ) ) { // wfDebug( "Invoked LogLine hook for " $s->log_type . ", " . $s->log_action . "\n" ); // Do nothing. The implementation is handled by the hook modifiying the passed-by-ref parameters. -- 2.20.1