Don't break codemirror if wikEdDiff is enabled, only if wikEd is enabled

Bug: T178348
Change-Id: If579d4da99f364e73dec5a7e6bed87019431386b
This commit is contained in:
Niharika Kohli 2017-12-05 19:15:12 +05:30
parent 6849149d80
commit a6c9441490

View file

@ -302,7 +302,7 @@
// If CodeMirror is already loaded or wikEd gadget is enabled, abort. See T178348.
// FIXME: Would be good to replace the wikEd check with something more generic.
if ( codeMirror || window.wikEd !== undefined ) {
if ( codeMirror || mw.user.options.get( 'gadget-wikEd' ) > 0 ) {
return;
}