Skip to content
Snippets Groups Projects
Unverified Commit ad5b7d3b authored by Laur0r's avatar Laur0r Committed by GitHub
Browse files

Merge pull request #116 from learnweb/fix/delete-duplicate-backup

Delete backup files in file area after copying
parents 047c1a12 5c3ded75
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,7 @@ class backup_manager { ...@@ -76,6 +76,7 @@ class backup_manager {
$file = $results['backup_destination']; $file = $results['backup_destination'];
if (!empty($file)) { if (!empty($file)) {
$file->copy_content_to($path . DIRECTORY_SEPARATOR . $archivefile); $file->copy_content_to($path . DIRECTORY_SEPARATOR . $archivefile);
$file->delete();
} }
$bc->destroy(); $bc->destroy();
unset($bc); unset($bc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment