Add $wgExtensionAssetsPath, to decouple js/css/etc serving from $wgScriptPath
authorDomas Mituzas <midom@users.mediawiki.org>
Sun, 10 Jan 2010 10:19:25 +0000 (10:19 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sun, 10 Jan 2010 10:19:25 +0000 (10:19 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/Setup.php

index 4fb568c..11434aa 100644 (file)
@@ -88,6 +88,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   signatures. This was always the behaviour documented in DefaultSettings.php
   but has not been the actual behaviour for some time: instead, UTC was used 
   by default.
+* Added $wgExtensionAssetsPath, to decouple assets serving from $wgScriptPath.
+  If not specified it will default to $wgScriptPath/extensions
 
 
 === New features in 1.16 ===
index fb50b72..52e86e9 100644 (file)
@@ -142,9 +142,11 @@ $wgRedirectScript   = false; ///< defaults to "{$wgScriptPath}/redirect{$wgScrip
  * splitting style sheets or images outside the main document root.
  */
 /**
- * style path as seen by users
+ * asset paths as seen by users
  */
 $wgStylePath   = false; ///< defaults to "{$wgScriptPath}/skins"
+$wgExtensionAssetsPath = false; ///< defaults to "{$wgScriptPath}/extensions"
+
 /**
  * filesystem stylesheets directory
  */
index 1bc2dba..4887038 100644 (file)
@@ -40,6 +40,7 @@ if( $wgArticlePath === false ) {
 
 if( $wgStylePath === false ) $wgStylePath = "$wgScriptPath/skins";
 if( $wgStyleDirectory === false) $wgStyleDirectory   = "$IP/skins";
+if( $wgExtensionAssetsPath === false ) $wgExtensionAssetsPath = "$wgScriptPath/extensions";
 
 if( $wgLogo === false ) $wgLogo = "$wgStylePath/common/images/wiki.png";