From ab5c4d69ca286dbd5978bf20e4f74bff09a9d8b9 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Wed, 16 Feb 2011 14:28:26 +0000 Subject: [PATCH] Expose $wgExtensionAssetsPath in JS --- includes/resourceloader/ResourceLoaderStartUpModule.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.20.1