Fix rimozione backup

This commit is contained in:
Thomas Zilio 2018-11-02 13:18:32 +01:00
parent 208f2768fc
commit f51e0802b1
2 changed files with 4 additions and 3 deletions

View File

@ -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.'"',
]));

View File

@ -166,6 +166,7 @@ class Backup
'.couscous',
'node_modules',
'tests',
'tmp',
],
];