From ae0c4e6988bde8dbd6a802bb8b8bc9e27f9bfba2 Mon Sep 17 00:00:00 2001 From: Catrope Date: Mon, 26 Nov 2012 17:39:44 -0800 Subject: [PATCH] (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 --- ApiVisualEditor.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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