From: Roan Kattouw Date: Tue, 21 Apr 2009 14:49:13 +0000 (+0000) Subject: API: (bug 18546) Added timestamp of new revision to action=edit output X-Git-Tag: 1.31.0-rc.0~42081 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=674724e68643ad03c5f9a5af1efc25ffff8d643b;p=lhc%2Fweb%2Fwiklou.git API: (bug 18546) Added timestamp of new revision to action=edit output --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 849d2b38d2..8003f78c3b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 1e392764ff..112083ec40 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -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: