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:
parent
208f2768fc
commit
f51e0802b1
@ -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.'"',
|
||||
]));
|
||||
|
@ -166,6 +166,7 @@ class Backup
|
||||
'.couscous',
|
||||
'node_modules',
|
||||
'tests',
|
||||
'tmp',
|
||||
],
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user