mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-07-31 18:30:20 +02:00
Backup Plugin: Improvements
This commit is contained in:
@@ -15,8 +15,6 @@ class BackupAdmin extends Backend
|
||||
{
|
||||
$backups_path = ROOT . DS . 'backups';
|
||||
|
||||
$backups_list = array();
|
||||
|
||||
// Create backup
|
||||
// -------------------------------------
|
||||
if (Request::post('create_backup')) {
|
||||
@@ -71,12 +69,9 @@ class BackupAdmin extends Backend
|
||||
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
|
||||
}
|
||||
|
||||
// Get backup list
|
||||
$backups_list = File::scan($backups_path, '.zip');
|
||||
|
||||
// Display view
|
||||
View::factory('box/backup/views/backend/index')
|
||||
->assign('backups_list', $backups_list)
|
||||
->assign('backups_list', File::scan($backups_path, '.zip'))
|
||||
->display();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user