Actually send oldid on POST like we promised Parsoid we would

VisualEditor did not send an oldid on POST so far, which disabled
selective serialization in production.

Bug: 47434
Change-Id: Ib1b7079a7fd3357903e5a14795ed0d2f2bdc5d16
This commit is contained in:
Gabriel Wicke 2013-04-19 15:13:57 -07:00 committed by Jforrester
parent a22c8fe94e
commit 1d27c3cd26

View file

@ -75,9 +75,11 @@ class ApiVisualEditor extends ApiBase {
$wgVisualEditorParsoidURL . '/' . $wgVisualEditorParsoidPrefix .
'/' . urlencode( $title->getPrefixedDBkey() ),
array(
'postData' => array( 'content' => $html ),
'timeout' => $wgVisualEditorParsoidTimeout,
'oldid' => $parserParams['oldid']
'postData' => array(
'content' => $html,
'oldid' => $parserParams['oldid']
),
'timeout' => $wgVisualEditorParsoidTimeout
)
);
}