API: (bug 18546) Added timestamp of new revision to action=edit output
authorRoan Kattouw <catrope@users.mediawiki.org>
Tue, 21 Apr 2009 14:49:13 +0000 (14:49 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Tue, 21 Apr 2009 14:49:13 +0000 (14:49 +0000)
RELEASE-NOTES
includes/api/ApiEditPage.php

index 849d2b3..8003f78 100644 (file)
@@ -414,6 +414,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Add parentid to prop=revisions output
 * (bug 17832) action=delete returns 'unknownerror' instead of 'permissiondenied'
   when the user is blocked
+* (bug 18546) Added timestamp of new revision to action=edit output
 
 === Languages updated in 1.15 ===
 
index 1e39276..112083e 100644 (file)
@@ -268,6 +268,8 @@ class ApiEditPage extends ApiBase {
                                {
                                        $r['oldrevid'] = intval($oldRevId);
                                        $r['newrevid'] = intval($newRevId);
+                                       $r['newtimestamp'] = wfTimestamp(TS_ISO_8601,
+                                               $newArticle->getTimestamp());
                                }
                                break;
                        default: