);
$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;