private function _restore()
{
$this->user->restrict('Admin.Maintenance.Add');
if ($this->input->get('restore')) {
if ($this->config->item('maintenance_mode') !== '1') {
$this->alert->set('warning', sprintf($this->lang->line('alert_warning_maintenance'), 'restore'));
} else {
if ($this->Maintenance_model->restoreDatabase($this->input->get('restore'))) {
// calls model to save data to SQL
$this->alert->set('success', sprintf($this->lang->line('alert_success'), 'Database restored '));
} else {
$this->alert->set('warning', sprintf($this->lang->line('alert_error_nothing'), 'restored'));
}
}
return TRUE;
}
}