$3: revid of the revision reverted to
$4: timestamp of the revision reverted to
$5: revid of the revision reverted from
$6: timestamp of the revision reverted from
* (bug 12622) A JavaScript constant to declare whether api.php is available
* Add caching to the AJAX search
* Added APCOND_INGROUPS
+* (bug 18585) Added a bunch of parameters to the revertpage message
=== Bug fixes in 1.12 ===
# Get the edit summary
$target = Revision::newFromId( $s->rev_id );
if( empty( $summary ) )
- $summary = wfMsgForContent( 'revertpage', $target->getUserText(), $from );
+ {
+ global $wgLang;
+ $summary = wfMsgForContent( 'revertpage',
+ $target->getUserText(), $from,
+ $s->rev_id, $wgLang->timeanddate(wfTimestamp(TS_MW, $s->rev_timestamp), true),
+ $current->getId(), $wgLang->timeanddate($current->getTimestamp())
+ );
+ }
# Save
$flags = EDIT_UPDATE;