'_MemCachedServers', 'wgDBserver', 'wgDBuser',
'wgDBpassword', 'wgUseInstantCommons', 'wgUpgradeKey', 'wgDefaultSkin',
'wgMetaNamespace', 'wgLogo', 'wgAuthenticationTokenVersion', 'wgPingback',
+ '_Caches',
],
$db->getGlobalNames()
);
* For $wgGroupPermissions, set a given ['group']['permission'] value.
* @param string $group Group name
* @param array $rightsArr An array of permissions, in the form of:
- * array( 'right' => true, 'right2' => false )
+ * [ 'right' => true, 'right2' => false ]
*/
public function setGroupRights( $group, $rightsArr ) {
$this->groupPermissions[$group] = $rightsArr;
*
* @param string $string
*
- * @return string
+ * @return string|false
*/
public static function escapePhpString( $string ) {
if ( is_array( $string ) || is_object( $string ) ) {
case 'db':
case 'memcached':
case 'accel':
+ case 'none':
$cacheType = 'CACHE_' . strtoupper( $this->values['_MainCacheType'] );
break;
- case 'none':
default:
- $cacheType = 'CACHE_NONE';
+ // If the user skipped the options page,
+ // default to CACHE_ACCEL if available
+ if ( count( $this->values['_Caches'] ) ) {
+ $cacheType = 'CACHE_ACCEL';
+ } else {
+ $cacheType = 'CACHE_NONE';
+ }
}
$mcservers = $this->buildMemcachedServerList();