From b19bc07599d9cf63306920206377bc778d3f2aff Mon Sep 17 00:00:00 2001 From: javilanz Date: Thu, 25 Aug 2011 16:08:16 +0000 Subject: [PATCH] 2011-08-25 Javier Lanz * include/functions_config.php: Fixed checking if remote configuration directory is not writtable for the console. Fixes: #3396471 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4821 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/include/functions_config.php | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 412db84e2a..5dbbb3bd3f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-08-25 Javier Lanz + + * include/functions_config.php: Fixed checking if remote configuration + directory is not writtable for the console. + + Fixes: #3396471 + 2011-08-25 Junichi Satoh * godmode/massive/massive_copy_modules.php: Added group recursion diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 084e14d9f3..f29c5b93ee 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -688,14 +688,14 @@ function config_check (){ $_SESSION["alert_msg"] .= '

'.__('Remote configuration directory is not writtable for the console').' - $remote_config

'; } - $remote_config = $remote_config . "/conf"; - if (!is_writable ($remote_config)){ + $remote_config_conf = $remote_config . "/conf"; + if (!is_writable ($remote_config_conf)){ $config["alert_cnt"]++; $_SESSION["alert_msg"] .= '

'.__('Remote configuration directory is not writtable for the console').' - $remote_config

'; } - $remote_config = $remote_config . "/collections"; - if (!is_writable ($remote_config)){ + $remote_config_col = $remote_config . "/collections"; + if (!is_writable ($remote_config_col)){ $config["alert_cnt"]++; $_SESSION["alert_msg"] .= '

'.__('Remote configuration directory is not writtable for the console').' - $remote_config

'; }