Disable VisualEditor in the TwoColConflict extension

As for the Translate extension this will read a global set by the
TwoColConflict extension to disable the VisualEditor and its hooks
on the modified edit conflict page there.

Bug: T156251
Change-Id: I164d1546c9d98d8715650e13c63a01d06c76315d
This commit is contained in:
WMDE-Fisch 2017-01-27 18:07:10 +01:00
parent 521a15a07d
commit a0af0b0529

View file

@ -772,6 +772,10 @@
// TODO: Allow the Translate extension to do this itself
mw.config.get( 'wgTranslatePageTranslation' ) !== 'translation' &&
// Not on the edit conflict page of the TwoColumnConflict extension see T156251
// TODO: Allow the TwoColumnConflict extension to do this itself
mw.config.get( 'wgTwoColConflict' ) !== 'true' &&
// Not on pages like Special:RevisionDelete
mw.config.get( 'wgNamespaceNumber' ) !== -1
);