* (bug 25728) Added $wgPasswordSenderName to allow customise the name associed
with $wgPasswordSender
* Sysops now have the "suppressredirect" right by default
+* Special wrapping setups can now define MW_CONFIG_FILE to load a config file
+ other than LocalSettings.php. This is like MW_CONFIG_CALLBACK but works in
+ some cases where MW_CONFIG_CALLBACK will not work.
=== New features in 1.17 ===
* (bug 10183) Users can now add personal styles and scripts to all skins via
}
call_user_func( $callback );
} else {
- # LocalSettings.php is the per site customization file. If it does not exit
- # the wiki installer need to be launched or the generated file moved from
+ if ( !defined('MW_CONFIG_FILE') )
+ define('MW_CONFIG_FILE', "$IP/LocalSettings.php");
+
+ # LocalSettings.php is the per site customization file. If it does not exist
+ # the wiki installer needs to be launched or the generated file moved from
# ./config/ to ./
- if( !file_exists( "$IP/LocalSettings.php" ) ) {
+ if( !file_exists( MW_CONFIG_FILE ) ) {
require_once( "$IP/includes/DefaultSettings.php" ); # used for printing the version
require_once( "$IP/includes/templates/NoLocalSettings.php" );
die();
}
# Include site settings. $IP may be changed (hopefully before the AutoLoader is invoked)
- require_once( "$IP/LocalSettings.php" );
+ require_once( MW_CONFIG_FILE );
}
if ( $wgEnableSelenium ) {
$wgWikiFarm = false;
if ( isset( $this->mOptions['conf'] ) ) {
$settingsFile = $this->mOptions['conf'];
+ } else if ( defined("MW_CONFIG_FILE") ) {
+ $settingsFile = MW_CONFIG_FILE;
} else {
$settingsFile = "$IP/LocalSettings.php";
}