mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 13:16:54 +02:00
Fix Translates
This commit is contained in:
@@ -51,9 +51,9 @@ class BackupAdmin extends Backend
|
||||
if (Security::check(Request::get('token'))) {
|
||||
|
||||
if (File::delete($backups_path . DS . Request::get('delete_file'))) {
|
||||
Notification::set('success', __('Backup was deleted', 'system'));
|
||||
Notification::set('success', __('Backup was deleted', 'backup'));
|
||||
} else {
|
||||
Notification::set('error', __('Backup was not deleted', 'system'));
|
||||
Notification::set('error', __('Backup was not deleted', 'backup'));
|
||||
}
|
||||
|
||||
Request::redirect(Option::get('siteurl').'/admin/index.php?id=backup');
|
||||
@@ -81,12 +81,12 @@ class BackupAdmin extends Backend
|
||||
$file_locations = Zip::factory()->extract($backups_path . DS . Request::get('restore'), $tmp_dir);
|
||||
if (!empty($file_locations)) {
|
||||
Dir::copy($tmp_dir, ROOT . DS);
|
||||
Notification::set('success', __('Backup was restored', 'system'));
|
||||
Notification::set('success', __('Backup was restored', 'backup'));
|
||||
} else {
|
||||
Notification::set('error', __('Unzip error', 'system'));
|
||||
Notification::set('error', __('Unzip error', 'backup'));
|
||||
}
|
||||
} else {
|
||||
Notification::set('error', __('Backup was not restored', 'system'));
|
||||
Notification::set('error', __('Backup was not restored', 'backup'));
|
||||
}
|
||||
|
||||
Request::redirect(Option::get('siteurl').'/admin/index.php?id=backup');
|
||||
|
Reference in New Issue
Block a user