API: (bug 19313) action=rollback returns wrong revid on master/slave setups
authorRoan Kattouw <catrope@users.mediawiki.org>
Sun, 21 Jun 2009 09:49:52 +0000 (09:49 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Sun, 21 Jun 2009 09:49:52 +0000 (09:49 +0000)
RELEASE-NOTES
includes/api/ApiRollback.php

index db1d5cf..0d45332 100644 (file)
@@ -233,6 +233,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Return HTTP 503 status code on maxlag error, like index.php does
 * Added index, fromtitle and byteoffset fields to action=parse&prop=sections
   output
+* (bug 19313) action=rollback returns wrong revid on master/slave setups
 
 === Languages updated in 1.16 ===
 
index 7df5acb..b826c56 100644 (file)
@@ -73,7 +73,7 @@ class ApiRollback extends ApiBase {
                        'title' => $titleObj->getPrefixedText(),
                        'pageid' => intval($details['current']->getPage()),
                        'summary' => $details['summary'],
-                       'revid' => intval($titleObj->getLatestRevID()),
+                       'revid' => intval($details['newid']),
                        'old_revid' => intval($details['current']->getID()),
                        'last_revid' => intval($details['target']->getID())
                );