2011-08-25 Javier Lanz <javier.lanz@artica.es>

* 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
This commit is contained in:
javilanz 2011-08-25 16:08:16 +00:00
parent d561f6ea47
commit b19bc07599
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2011-08-25 Javier Lanz <javier.lanz@artica.es>
* include/functions_config.php: Fixed checking if remote configuration
directory is not writtable for the console.
Fixes: #3396471
2011-08-25 Junichi Satoh <junichi@rworks.jp>
* godmode/massive/massive_copy_modules.php: Added group recursion

View File

@ -688,14 +688,14 @@ function config_check (){
$_SESSION["alert_msg"] .= '<h3 class="error">'.__('Remote configuration directory is not writtable for the console').' - $remote_config</h3>';
}
$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"] .= '<h3 class="error">'.__('Remote configuration directory is not writtable for the console').' - $remote_config</h3>';
}
$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"] .= '<h3 class="error">'.__('Remote configuration directory is not writtable for the console').' - $remote_config</h3>';
}