r60885 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60884‎ | r60885 | r60886 >
Date:10:19, 10 January 2010
Author:midom
Status:ok
Tags:
Comment:
Add $wgExtensionAssetsPath, to decouple js/css/etc serving from $wgScriptPath
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/Setup.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Setup.php
@@ -40,6 +40,7 @@
4141
4242 if( $wgStylePath === false ) $wgStylePath = "$wgScriptPath/skins";
4343 if( $wgStyleDirectory === false) $wgStyleDirectory = "$IP/skins";
 44+if( $wgExtensionAssetsPath === false ) $wgExtensionAssetsPath = "$wgScriptPath/extensions";
4445
4546 if( $wgLogo === false ) $wgLogo = "$wgStylePath/common/images/wiki.png";
4647
Index: trunk/phase3/includes/DefaultSettings.php
@@ -142,9 +142,11 @@
143143 * splitting style sheets or images outside the main document root.
144144 */
145145 /**
146 - * style path as seen by users
 146+ * asset paths as seen by users
147147 */
148148 $wgStylePath = false; ///< defaults to "{$wgScriptPath}/skins"
 149+$wgExtensionAssetsPath = false; ///< defaults to "{$wgScriptPath}/extensions"
 150+
149151 /**
150152 * filesystem stylesheets directory
151153 */
Index: trunk/phase3/RELEASE-NOTES
@@ -88,6 +88,8 @@
8989 signatures. This was always the behaviour documented in DefaultSettings.php
9090 but has not been the actual behaviour for some time: instead, UTC was used
9191 by default.
 92+* Added $wgExtensionAssetsPath, to decouple assets serving from $wgScriptPath.
 93+ If not specified it will default to $wgScriptPath/extensions
9294
9395
9496 === New features in 1.16 ===

Follow-up revisions

RevisionCommit summaryAuthorDate
r60886Switch to using $wgExtensionAssetsPath for css/js includes, requires MW r60885midom10:20, 10 January 2010
r60887mft r60885 : Add $wgExtensionAssetsPath, to decouple js/css/etc serving from ...midom10:28, 10 January 2010

Status & tagging log