Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/196971
Change subject: Use ResourceLoader::isModuleRegistered()
......................................................................
Use ResourceLoader::isModuleRegistered()
Change-Id: I3e26b9b0400251cfb290935f97f28b4860bd1b75
---
M VisualEditor.hooks.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/71/196971/1
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: newchange
Gerrit-Change-Id: I3e26b9b0400251cfb290935f97f28b4860bd1b75
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits