jenkins-bot has submitted this change and it was merged.

Change subject: Use ResourceLoader::isModuleRegistered()
......................................................................


Use ResourceLoader::isModuleRegistered()

Change-Id: I3e26b9b0400251cfb290935f97f28b4860bd1b75
---
M VisualEditor.hooks.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/VisualEditor.hooks.php b/VisualEditor.hooks.php
index 2346f12..3855adc 100644
--- a/VisualEditor.hooks.php
+++ b/VisualEditor.hooks.php
@@ -17,7 +17,7 @@
                // parties who attempt to install VisualEditor onto non-alpha 
wikis, as
                // this should have no impact on deploying to Wikimedia's wiki 
cluster;
                // is fine for release tarballs because 1.22wmf11 < 1.22alpha < 
1.22.0.
-               wfUseMW( '1.25wmf21' );
+               wfUseMW( '1.25wmf22' );
        }
 
        /**
@@ -472,7 +472,7 @@
                $addModules = array();
 
                foreach ( $libModules as $name => $data ) {
-                       if ( !isset( $resourceModules[$name] ) && 
!$resourceLoader->getModule( $name ) ) {
+                       if ( !isset( $resourceModules[$name] ) && 
!$resourceLoader->isModuleRegistered( $name ) ) {
                                $addModules[$name] = $data;
                        }
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/196971
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3e26b9b0400251cfb290935f97f28b4860bd1b75
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to