Jforrester has uploaded a new change for review.
https://gerrit.wikimedia.org/r/76869
Change subject: Add dependency check for MW1.22/wmf11
......................................................................
Add dependency check for MW1.22/wmf11
And perhaps-overly lengthy explanation as to why this is needed.
Bug: 51606
Change-Id: I225bfbe7923434f3c363562de6226ddf618b834b
---
M VisualEditor.hooks.php
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/69/76869/1
diff --git a/VisualEditor.hooks.php b/VisualEditor.hooks.php
index b03171b..98a01ac 100644
--- a/VisualEditor.hooks.php
+++ b/VisualEditor.hooks.php
@@ -16,6 +16,14 @@
global $wgVisualEditorEnableEventLogging, $wgResourceModules,
$wgVisualEditorEnableGenderSurvey;
+ // This prevents VisualEditor from being run in environments
that don't
+ // have the dependent code in core; this should be updated as a
part of
+ // when additional dependencies are created and pushed into
MediaWiki's
+ // core. The most direct effect of this is to avoid confusing
any third
+ // parties who attempt to install VisualEditor onto non-alpha
wikis, as
+ // this should have no impact on deploying to Wikimedia's wiki
cluster.
+ wfUseMW( '1.22wmf11' );
+
if ( $wgVisualEditorEnableEventLogging ) {
if ( class_exists( 'ResourceLoaderSchemaModule' ) ) {
// EventLogging schema module for logging edit
events.
--
To view, visit https://gerrit.wikimedia.org/r/76869
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I225bfbe7923434f3c363562de6226ddf618b834b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Jforrester <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits