X-Git-Url: http://git.cyclocoop.org/%24action?a=blobdiff_plain;f=includes%2Fapi%2FApiEditPage.php;h=4cb91bc9e81592a4551a0e4cba3081552e81ce19;hb=78a5729fea2adedc0342d1e36e99f4fcf2c37320;hp=ec1b06e4c1f82d7bfb57d454e940667b7be977b0;hpb=ed131b321320c109f08d1c5e9c515a63105d1c5f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index ec1b06e4c1..4cb91bc9e8 100644 --- 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'] != '' ) {