Jforrester has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/200098

Change subject: [WIP] Make VisualEditor access RESTbase directly
......................................................................

[WIP] Make VisualEditor access RESTbase directly

Bug: T90374
Change-Id: I74a63bc028fdf098dad69437532adfb48bc533ed
---
M wmf-config/InitialiseSettings.php
1 file changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/98/200098/1

diff --git a/wmf-config/InitialiseSettings.php 
b/wmf-config/InitialiseSettings.php
index 61b7de5..cf130ea 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -12306,6 +12306,17 @@
        'svwiktionary' => true, # Per community request
 ),
 
+// OMG the hack; this really should be wmgVisualEditorAccessRESTbaseDirectly 
or whatever
+'wgVisualEditorRestbaseURL' => array(
+       'default' => '',
+       'dewiki' => 'https://rest.wikimedia.org/de.wikipedia.org/v1/page/html/',
+       'enwiki' => 'https://rest.wikimedia.org/en.wikipedia.org/v1/page/html/',
+       'eswiki' => 'https://rest.wikimedia.org/es.wikipedia.org/v1/page/html/',
+       'frwiki' => 'https://rest.wikimedia.org/fr.wikipedia.org/v1/page/html/',
+       'itwiki' => 'https://rest.wikimedia.org/it.wikipedia.org/v1/page/html/',
+       'ptwiki' => 'https://rest.wikimedia.org/pt.wikipedia.org/v1/page/html/',
+),
+
 // Namespaces for VisualEditor to be active in, as well as wgContentNamespaces
 // NS_VISUALEDITOR is added in CommonSettings.php if 
wmgUseVisualEditorNamespace is true
 'wmgVisualEditorNamespaces' => array(

-- 
To view, visit https://gerrit.wikimedia.org/r/200098
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I74a63bc028fdf098dad69437532adfb48bc533ed
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Jforrester <jforres...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to