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
This commit is contained in:
Antoine Musso 2017-02-13 17:17:25 +01:00
parent 4a6ddadf73
commit 47dfb84689

View file

@ -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;
}