mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 06:24:08 +00:00
(bug 42403) Add Parsoid prefix to POST requests too.
This is a port of Mark's https://gerrit.wikimedia.org/r/#/c/31348 Change-Id: I3a57992fdbeffad1df1d97239e98dbec52fdd5cb
This commit is contained in:
parent
1ba75b7ea9
commit
ae0c4e6988
|
@ -28,9 +28,11 @@ class ApiVisualEditor extends ApiBase {
|
|||
}
|
||||
|
||||
protected function postHTML( $title, $html ) {
|
||||
global $wgVisualEditorParsoidURL, $wgVisualEditorParsoidTimeout;
|
||||
global $wgVisualEditorParsoidURL, $wgVisualEditorParsoidPrefix,
|
||||
$wgVisualEditorParsoidTimeout;
|
||||
return Http::post(
|
||||
$wgVisualEditorParsoidURL . '/' . urlencode( $title->getPrefixedDBkey() ),
|
||||
$wgVisualEditorParsoidURL . '/' . $wgVisualEditorParsoidPrefix .
|
||||
'/' . urlencode( $title->getPrefixedDBkey() ),
|
||||
array(
|
||||
'postData' => array( 'content' => $html ),
|
||||
'timeout' => $wgVisualEditorParsoidTimeout
|
||||
|
|
Loading…
Reference in a new issue