diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php index f5200df676..901aa52de2 100644 --- a/ApiVisualEditor.php +++ b/ApiVisualEditor.php @@ -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