(bug 42410) Add $pageObj->clear() for newtimestamp
To return latest timestamp Change-Id: I1d28164d89917152d3f712817a125c8be36f390d
This commit is contained in:
parent
483a3a78ac
commit
2c279262b3
2 changed files with 2 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ production.
|
|||
* (bug 42173) Removed namespace prefixes on Special:UncategorizedCategories.
|
||||
* (bug 36053) Log in "returnto" feature forgets query parameters if no
|
||||
title parameter was specified.
|
||||
* (bug 42410) API action=edit now returns correct timestamp for the new edit.
|
||||
|
||||
=== API changes in 1.21 ===
|
||||
* prop=revisions can now report the contentmodel and contentformat, see docs/contenthandler.txt.
|
||||
|
|
|
|||
|
|
@ -407,6 +407,7 @@ class ApiEditPage extends ApiBase {
|
|||
} else {
|
||||
$r['oldrevid'] = intval( $oldRevId );
|
||||
$r['newrevid'] = intval( $newRevId );
|
||||
$pageObj->clear();
|
||||
$r['newtimestamp'] = wfTimestamp( TS_ISO_8601,
|
||||
$pageObj->getTimestamp() );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue