(bug 12585) Added a bunch of parameters to the revertpage message (rollback summary...
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 15 Jan 2008 15:38:30 +0000 (15:38 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 15 Jan 2008 15:38:30 +0000 (15:38 +0000)
$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

RELEASE-NOTES
includes/Article.php

index fcf0106..3bf25b7 100644 (file)
@@ -130,6 +130,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (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 ===
index 3193d40..9ca021c 100644 (file)
@@ -2367,7 +2367,14 @@ class Article {
                # 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;