mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Merge "Remove X-Parsoid-Variant configuration value, which is no longer needed"
This commit is contained in:
commit
39a8ecf890
|
@ -36,7 +36,6 @@
|
|||
},
|
||||
"VisualEditorRestbaseURL": false,
|
||||
"VisualEditorFullRestbaseURL": false,
|
||||
"VisualEditorRestbaseParsoidVariant": false,
|
||||
"VisualEditorAllowLossySwitching": true,
|
||||
"VisualEditorAvailableNamespaces": {
|
||||
"User": true,
|
||||
|
|
|
@ -114,9 +114,6 @@ class ApiVisualEditor extends ApiBase {
|
|||
$reqheaders['Accept-Language'] = self::getPageLanguage( $title )->getCode();
|
||||
$reqheaders['User-Agent'] = 'VisualEditor-MediaWiki/' . $wgVersion;
|
||||
$reqheaders['Api-User-Agent'] = 'VisualEditor-MediaWiki/' . $wgVersion;
|
||||
if ( $this->veConfig->get( 'VisualEditorRestbaseParsoidVariant' ) ) {
|
||||
$reqheaders['X-Parsoid-Variant'] = $this->veConfig->get( 'VisualEditorRestbaseParsoidVariant' );
|
||||
}
|
||||
$request['headers'] = $reqheaders;
|
||||
$response = $this->serviceClient->run( $request );
|
||||
if ( $response['code'] === 200 && $response['error'] === "" ) {
|
||||
|
|
|
@ -1011,7 +1011,6 @@ class VisualEditorHooks {
|
|||
'rebaserUrl' => $coreConfig->get( 'VisualEditorRebaserURL' ),
|
||||
'restbaseUrl' => $coreConfig->get( 'VisualEditorRestbaseURL' ),
|
||||
'fullRestbaseUrl' => $coreConfig->get( 'VisualEditorFullRestbaseURL' ),
|
||||
'parsoidVariant' => $veConfig->get( 'VisualEditorRestbaseParsoidVariant' ),
|
||||
'allowLossySwitching' => $coreConfig->get( 'VisualEditorAllowLossySwitching' ),
|
||||
'feedbackApiUrl' => $veConfig->get( 'VisualEditorFeedbackAPIURL' ),
|
||||
'feedbackTitle' => $veConfig->get( 'VisualEditorFeedbackTitle' ),
|
||||
|
|
|
@ -338,9 +338,6 @@
|
|||
'Accept-Language': mw.config.get( 'wgVisualEditor' ).pageLanguageCode,
|
||||
'Api-User-Agent': 'VisualEditor-MediaWiki/' + mw.config.get( 'wgVersion' )
|
||||
};
|
||||
if ( conf.parsoidVariant ) {
|
||||
headers[ 'X-Parsoid-Variant' ] = conf.parsoidVariant;
|
||||
}
|
||||
|
||||
// Convert specified Wikitext to HTML
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue