1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-24 14:31:42 +01:00

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': case 'getfile':
$file = filter('file'); $file = filter('file');
download($backup_dir.$file, $file); download($backup_dir.'/'.$file, $file);
break; break;
case 'del': case 'del':
$file = filter('file'); $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!', [ flash()->info(tr('Backup _FILE_ eliminato!', [
'_FILE_' => '"'.$file.'"', '_FILE_' => '"'.$file.'"',
])); ]));

View File

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