Commit 624055af authored by tbrehm's avatar tbrehm
Browse files

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');
}
......@@ -673,6 +676,8 @@ if($backup_dir != '') {
chown($web_path.'/backup', $rec['system_user']);
chgrp($web_path.'/backup', $rec['system_group']);
}
$app->system->web_folder_protection($web_path,true);
}
......
Supports Markdown
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