mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-01 08:26:53 +01:00
Messaggi di avviso per ripristino db
This commit is contained in:
parent
e5a2e75b2d
commit
a22597e29d
@ -109,6 +109,17 @@ if (filter('op') == 'restore') {
|
||||
$path = $backups[$number];
|
||||
}
|
||||
|
||||
Backup::restore($path, is_file($path));
|
||||
$database->beginTransaction();
|
||||
try {
|
||||
$result = Backup::restore($path, is_file($path));
|
||||
$database->beginTransaction();
|
||||
|
||||
if ($result) {
|
||||
flash()->warning(tr('Ripristino eseguito correttamente!'));
|
||||
} else {
|
||||
flash()->error(tr('Errore durante il ripristino del backup!').'<br>'.$result);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
flash()->error(tr('Errore durante il ripristino del backup!').' '.$e->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user