From: Roan Kattouw Date: Wed, 16 Feb 2011 14:28:26 +0000 (+0000) Subject: Expose $wgExtensionAssetsPath in JS X-Git-Tag: 1.31.0-rc.0~31974 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=ab5c4d69ca286dbd5978bf20e4f74bff09a9d8b9;p=lhc%2Fweb%2Fwiklou.git Expose $wgExtensionAssetsPath in JS --- diff --git a/includes/resourceloader/ResourceLoaderStartUpModule.php b/includes/resourceloader/ResourceLoaderStartUpModule.php index 081798fcfe..f79cc207af 100644 --- a/includes/resourceloader/ResourceLoaderStartUpModule.php +++ b/includes/resourceloader/ResourceLoaderStartUpModule.php @@ -37,7 +37,7 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { $wgArticlePath, $wgScriptPath, $wgServer, $wgContLang, $wgVariantArticlePath, $wgActionPaths, $wgUseAjax, $wgVersion, $wgEnableAPI, $wgEnableWriteAPI, $wgDBname, $wgEnableMWSuggest, - $wgSitename, $wgFileExtensions; + $wgSitename, $wgFileExtensions, $wgExtensionAssetsPath; // Pre-process information $separatorTransTable = $wgContLang->separatorTransformTable(); @@ -85,6 +85,7 @@ class ResourceLoaderStartUpModule extends ResourceLoaderModule { // not find a way to add vars only for a certain module 'wgFileCanRotate' => BitmapHandler::canRotate(), 'wgAvailableSkins' => Skin::getSkinNames(), + 'wgExtensionAssetsPath' => $wgExtensionAssetsPath, ); if ( $wgContLang->hasVariants() ) { $vars['wgUserVariant'] = $wgContLang->getPreferredVariant();