diff --git a/modules/backup/actions.php b/modules/backup/actions.php index c41f2b2eb..1c58ddf23 100644 --- a/modules/backup/actions.php +++ b/modules/backup/actions.php @@ -8,16 +8,16 @@ switch (filter('op')) { case 'getfile': $file = filter('file'); - download($backup_dir.$file, $file); + download($backup_dir.'/'.$file, $file); break; case 'del': $file = filter('file'); - delete($backup_dir.$file); + delete($backup_dir.'/'.$file); - if (!file_exists($backup_dir.$file)) { + if (!file_exists($backup_dir.'/'.$file)) { flash()->info(tr('Backup _FILE_ eliminato!', [ '_FILE_' => '"'.$file.'"', ])); diff --git a/src/Backup.php b/src/Backup.php index ec65cb76f..39e95b99a 100644 --- a/src/Backup.php +++ b/src/Backup.php @@ -166,6 +166,7 @@ class Backup '.couscous', 'node_modules', 'tests', + 'tmp', ], ];