Pastakhov has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/351248 )
Change subject: Remove CodeMirror specific code
......................................................................
Remove CodeMirror specific code
Seems CodeMirror should not be used with the MobileFrontend extension since
mobile devices should use the simplest editor only.
Change-Id: I14ad8cbf5710e0e1df886f2c82b6f01f30381acc
---
M includes/MobileFrontend.hooks.php
1 file changed, 0 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/48/351248/1
diff --git a/includes/MobileFrontend.hooks.php
b/includes/MobileFrontend.hooks.php
index 684857a..820156d 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -435,11 +435,6 @@
if ( $context->shouldDisplayMobileView() ) {
$vars['wgImagesDisabled'] = $context->imagesDisabled();
}
- // add CodeMirror specific things, if it is installed (for
CodeMirror editor)
- if ( class_exists( 'CodeMirrorHooks' ) ) {
- $vars += CodeMirrorHooks::getGlobalVariables(
MobileContext::singleton() );
- $vars['wgMFCodeMirror'] = true;
- }
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/351248
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I14ad8cbf5710e0e1df886f2c82b6f01f30381acc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Pastakhov <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits