Ljonka has uploaded a new change for review.
https://gerrit.wikimedia.org/r/245479
Change subject: Fix for runtime error on js resssource loader
......................................................................
Fix for runtime error on js resssource loader
Change-Id: Iff7a39649ed5222cc5157fe6c454cc6703e845b7
---
M includes/CoreHooks.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation
refs/changes/79/245479/1
diff --git a/includes/CoreHooks.php b/includes/CoreHooks.php
index 840385e..aedc507 100755
--- a/includes/CoreHooks.php
+++ b/includes/CoreHooks.php
@@ -169,14 +169,14 @@
$out->addJsConfigVars('bsExtensionManagerAssetsPaths',
$aAssetsPaths);
$sBasePath =
$wgExtensionAssetsPath.'/BlueSpiceFoundation/resources/bluespice.extjs';
- $sExtJS = '$(function(){';
+ $sExtJS = '(function(mw, $, undefined){';
$sExtJS.= ' Ext.BLANK_IMAGE_URL =
mw.config.get("wgScriptPath") '
. ' +
"/extensions/BlueSpiceFoundation/resources/bluespice.extjs/images/s.gif";';
$sExtJS.= ' Ext.Loader.setConfig({ enabled: true,
disableCaching: '.FormatJson::encode($bIsDebug).' });';
$sExtJS.= " Ext.Loader.setPath( 'BS', '$sBasePath' +
'/BS');";
$sExtJS.= " Ext.Loader.setPath( 'Ext.ux', '$sBasePath' +
'/Ext.ux');";
$sExtJS.= ' Ext.Loader.setPath('.FormatJson::encode(
$aExtJSPaths).');';
- $sExtJS.= '});';
+ $sExtJS.= '}( mediaWiki, jQuery ));';
$out->addScript(
Html::inlineScript( $sExtJS )
--
To view, visit https://gerrit.wikimedia.org/r/245479
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iff7a39649ed5222cc5157fe6c454cc6703e845b7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Ljonka <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits