X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7302041c3f2c05098816f4fd9e3e538811f25a4e..6f4175313dccb09cfdfc1a738d9b5cc5a09191bf:/cookbooks/mediawiki/templates/default/mw-ext-VisualEditor.inc.php.erb diff --git a/cookbooks/mediawiki/templates/default/mw-ext-VisualEditor.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-VisualEditor.inc.php.erb index a36e5c25f..ed9740571 100644 --- a/cookbooks/mediawiki/templates/default/mw-ext-VisualEditor.inc.php.erb +++ b/cookbooks/mediawiki/templates/default/mw-ext-VisualEditor.inc.php.erb @@ -4,7 +4,11 @@ $wgVirtualRestConfig['modules']['parsoid'] = array( ); $wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true; +<% if @version >= "1.37" -%> +wfLoadExtension( 'VisualEditor' ); +<% else -%> require_once($IP .'/extensions/VisualEditor/VisualEditor.php'); +<% end -%> // Enable by default for everybody $wgDefaultUserOptions['visualeditor-enable'] = 1;