dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b1b9ada
)
Merge "Passing the undid revisionId from the API request to the WebRequest"
author
Tychay
<tchay@wikimedia.org>
Wed, 31 Oct 2012 23:33:10 +0000
(23:33 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 31 Oct 2012 23:33:10 +0000
(23:33 +0000)
includes/api/ApiEditPage.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiEditPage.php
b/includes/api/ApiEditPage.php
index
ec1b06e
..
4cb91bc
100644
(file)
--- a/
includes/api/ApiEditPage.php
+++ b/
includes/api/ApiEditPage.php
@@
-246,6
+246,11
@@
class ApiEditPage extends ApiBase {
$requestArray['wpSectionTitle'] = $params['sectiontitle'];
}
+ // TODO: Pass along information from 'undoafter' as well
+ if ( $params['undo'] > 0 ) {
+ $requestArray['wpUndidRevision'] = $params['undo'];
+ }
+
// Watch out for basetimestamp == ''
// wfTimestamp() treats it as NOW, almost certainly causing an edit conflict
if ( !is_null( $params['basetimestamp'] ) && $params['basetimestamp'] != '' ) {