From 3359cbde31b571ddd2b5bd1652e1d2c8ed3116d3 Mon Sep 17 00:00:00 2001 From: Derick Alangi Date: Tue, 2 Apr 2019 23:37:51 +0100 Subject: [PATCH] CodeMirrorHooks: Remove wgCodeMirrorEnabled set in mw.config JS This was used for backward compatibility after beta support was removed by MaxSem in I1ad451acfd163c783e7b (T185030). As a todo, this backcompat was planned to be removed in 2019 :). Bug: T219342 Change-Id: I35c77add8b4815a26b1bea2df90eaeae05a9a9f7 --- includes/CodeMirrorHooks.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/CodeMirrorHooks.php b/includes/CodeMirrorHooks.php index 6901234d..12eb0943 100644 --- a/includes/CodeMirrorHooks.php +++ b/includes/CodeMirrorHooks.php @@ -38,8 +38,6 @@ class CodeMirrorHooks { $out->addModules( [ 'ext.CodeMirror.lib', 'ext.CodeMirror.mode.mediawiki' ] ); } } - // TODO: for backwards compatibility. Remove in 2019. - $out->addJsConfigVars( 'wgCodeMirrorEnabled', true ); } /**