r60887 MediaWiki - Code Review archive

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

Diff [purge]

Index: branches/wmf-deployment/includes/Setup.php
@@ -41,6 +41,7 @@
4242
4343 if( $wgStylePath === false ) $wgStylePath = "$wgScriptPath/skins";
4444 if( $wgStyleDirectory === false) $wgStyleDirectory = "$IP/skins";
 45+if( $wgExtensionAssetsPath === false ) $wgExtensionAssetsPath = "$wgScriptPath/extensions";
4546
4647 if( $wgLogo === false ) $wgLogo = "$wgStylePath/common/images/wiki.png";
4748
Index: branches/wmf-deployment/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: branches/wmf-deployment/RELEASE-NOTES
@@ -89,6 +89,8 @@
9090 maintenance
9191 * New hook AbortNewAccountAuto, called before account creation from AuthPlugin-
9292 or ExtUser-driven requests.
 93+* Added $wgExtensionAssetsPath, to decouple assets serving from $wgScriptPath.
 94+ If not specified it will default to $wgScriptPath/extensions
9395
9496 === New features in 1.16 ===
9597

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r60885Add $wgExtensionAssetsPath, to decouple js/css/etc serving from $wgScriptPathmidom10:19, 10 January 2010

Status & tagging log