diff --git a/setup/inc/class.setup_detection.inc.php b/setup/inc/class.setup_detection.inc.php index ad4cf0970e..b168f294d6 100755 --- a/setup/inc/class.setup_detection.inc.php +++ b/setup/inc/class.setup_detection.inc.php @@ -404,14 +404,12 @@ class setup_detection $config_errors[] = lang("Your temporary directory '%1' %2",$config['temp_dir'],$error_msg); } - if ((!isset($config['file_repository']) || $config['file_repository'] == 'sql') && - (!isset($config['file_store_contents']) || $config['file_store_contents'] == 'filesystem') && - !$this->check_dir($config['files_dir'],$error_msg,true)) + if (!$this->check_dir($config['files_dir'],$error_msg,true)) { $config_errors[] = lang("Your files directory '%1' %2",$config['files_dir'],$error_msg); } // set and create the default backup_dir - if (@is_writeable($config['files_dir']) && !$config['backup_dir'] && $config['file_store_contents'] == 'filesystem') + if (@is_writeable($config['files_dir']) && empty($config['backup_dir'])) { $config['backup_dir'] = $config['files_dir'].'/db_backup'; if (!is_dir($config['backup_dir']) && mkdir($config['backup_dir'])) diff --git a/setup/inc/hook_config_validate.inc.php b/setup/inc/hook_config_validate.inc.php index 3e1cf7863b..3d10f35bb3 100644 --- a/setup/inc/hook_config_validate.inc.php +++ b/setup/inc/hook_config_validate.inc.php @@ -83,8 +83,7 @@ function temp_dir($settings) function files_dir($settings) { $error_msg = null; - if ($settings['file_repository'] == 'sql' && $settings['file_store_contents'] == 'filesystem' && - !setup_detection::check_dir($settings['files_dir'],$error_msg,true)) + if (!setup_detection::check_dir($settings['files_dir'],$error_msg,true)) { $GLOBALS['config_error'] = lang("Your files directory '%1' %2",$settings['files_dir'],$error_msg); } @@ -92,7 +91,7 @@ function files_dir($settings) function backup_dir(&$settings) { - if (@is_writeable($settings['files_dir']) && !$settings['backup_dir'] && $settings['file_store_contents'] == 'filesystem') + if (@is_writeable($settings['files_dir']) && empty($settings['backup_dir'])) { $settings['backup_dir'] = $settings['files_dir'].'/db_backup'; }