From f673725f10223709252e0bf2de76cc493edec312 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 30 Jul 2013 11:58:07 +0100 Subject: [PATCH] Check MW version before loading VE Currently >= 1.22alpha Bug: 51606 Change-Id: If45830b9e7636e8e53671d6160914d50e51f1e0f --- VisualEditor.hooks.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VisualEditor.hooks.php b/VisualEditor.hooks.php index b03171b74a..44e92980e3 100644 --- a/VisualEditor.hooks.php +++ b/VisualEditor.hooks.php @@ -16,6 +16,8 @@ class VisualEditorHooks { global $wgVisualEditorEnableEventLogging, $wgResourceModules, $wgVisualEditorEnableGenderSurvey; + wfUseMW( '1.22alpha' ); + if ( $wgVisualEditorEnableEventLogging ) { if ( class_exists( 'ResourceLoaderSchemaModule' ) ) { // EventLogging schema module for logging edit events.