<?php
$wgVirtualRestConfig['modules']['parsoid'] = array(
- 'url' => 'http://<%= @mediawiki[:name] %>:8142'
+ 'url' => 'http://localhost:8142'
);
$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;
-require_once "$IP/extensions/VisualEditor/VisualEditor.php";
+<% if @version >= "1.37" -%>
+wfLoadExtension( 'VisualEditor' );
+<% else -%>
+require_once($IP .'/extensions/VisualEditor/VisualEditor.php');
+<% end -%>
// Enable by default for everybody
-// $wgDefaultUserOptions['visualeditor-enable'] = 1;
+$wgDefaultUserOptions['visualeditor-enable'] = 1;
// Don't allow users to disable it
// $wgHiddenPrefs[] = 'visualeditor-enable';