From 47dfb84689a89e0d9b548698d453dc988ffc3505 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 13 Feb 2017 17:17:25 +0100 Subject: [PATCH] Fix logic in RL module conditional registration In 4a6ddad I made it to not load VisualEditor resources whenever VisualEditor is enabled. Reverse the logic. Change-Id: I6297f1c8ada84967416f747dbfc7c56084b05c51 --- SyntaxHighlight_GeSHi.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SyntaxHighlight_GeSHi.class.php b/SyntaxHighlight_GeSHi.class.php index 82b47032..46567e85 100644 --- a/SyntaxHighlight_GeSHi.class.php +++ b/SyntaxHighlight_GeSHi.class.php @@ -504,7 +504,7 @@ class SyntaxHighlight_GeSHi { * @return true */ public static function onResourceLoaderRegisterModules( &$resourceLoader ) { - if ( ExtensionRegistry::getInstance()->isLoaded( 'VisualEditor' ) ) { + if ( ! ExtensionRegistry::getInstance()->isLoaded( 'VisualEditor' ) ) { return; }