Commit 624055af authored by tbrehm's avatar tbrehm

Made backup function compatible with web folder protection feature.

parent c8d077e4
......@@ -665,6 +665,9 @@ if($backup_dir != '') {
unset($dir_handle);
//* Remove backupdir symlink and create as directory instead
$app->uses('system');
$app->system->web_folder_protection($web_path,false);
if(is_link($web_path.'/backup')) {
unlink($web_path.'/backup');
}
......@@ -674,6 +677,8 @@ if($backup_dir != '') {
chgrp($web_path.'/backup', $rec['system_group']);
}
$app->system->web_folder_protection($web_path,true);
}
/* If backup_interval is set to none and we have a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment