X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Finstaller%2FLocalSettingsGenerator.php;h=b74207431a1264fa562adc3b47417663178bbdbb;hb=5a1a4c9a4021b912aa9e55dc92b91599aa4d9e3c;hp=5a2dd1a20526fae13dbdba6067c1de4f90bf9643;hpb=0b635582a32873159eeecbbc59033a86345a43b1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/LocalSettingsGenerator.php b/includes/installer/LocalSettingsGenerator.php index 5a2dd1a205..b74207431a 100644 --- a/includes/installer/LocalSettingsGenerator.php +++ b/includes/installer/LocalSettingsGenerator.php @@ -62,8 +62,8 @@ class LocalSettingsGenerator { 'wgLanguageCode', 'wgEnableEmail', 'wgEnableUserEmail', 'wgDiff3', 'wgEnotifUserTalk', 'wgEnotifWatchlist', 'wgEmailAuthentication', 'wgDBtype', 'wgSecretKey', 'wgRightsUrl', 'wgSitename', 'wgRightsIcon', - 'wgRightsText', 'wgMainCacheType', 'wgEnableUploads', - 'wgMainCacheType', '_MemCachedServers', 'wgDBserver', 'wgDBuser', + 'wgRightsText', '_MainCacheType', 'wgEnableUploads', + '_MemCachedServers', 'wgDBserver', 'wgDBuser', 'wgDBpassword', 'wgUseInstantCommons', 'wgUpgradeKey', 'wgDefaultSkin', 'wgMetaNamespace', 'wgLogo', ), @@ -287,15 +287,15 @@ class LocalSettingsGenerator { $serverSetting = ""; if ( array_key_exists( 'wgServer', $this->values ) && $this->values['wgServer'] !== null ) { $serverSetting = "\n## The protocol and server name to use in fully-qualified URLs\n"; - $serverSetting .= "\$wgServer = \"{$this->values['wgServer']}\";\n"; + $serverSetting .= "\$wgServer = \"{$this->values['wgServer']}\";"; } - switch ( $this->values['wgMainCacheType'] ) { + switch ( $this->values['_MainCacheType'] ) { case 'anything': case 'db': case 'memcached': case 'accel': - $cacheType = 'CACHE_' . strtoupper( $this->values['wgMainCacheType'] ); + $cacheType = 'CACHE_' . strtoupper( $this->values['_MainCacheType'] ); break; case 'none': default: @@ -334,7 +334,10 @@ if ( !defined( 'MEDIAWIKI' ) ) { \$wgScriptPath = \"{$this->values['wgScriptPath']}\"; ${serverSetting} -## The relative URL path to the logo. Make sure you change this from the default, +## The URL path to static resources (images, scripts, etc.) +\$wgResourceBasePath = \$wgScriptPath; + +## The URL path to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! \$wgLogo = \"{$this->values['wgLogo']}\";