mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:27:03 +02:00
removed <?= php abbreviations
This commit is contained in:
@ -9,6 +9,7 @@ class ControllerHealthHealth extends Controller {
|
||||
$this->template = "health/health.tpl";
|
||||
$this->layout = "common/layout-health";
|
||||
|
||||
$this->load->model('health/health');
|
||||
|
||||
$request = Registry::get('request');
|
||||
$language = Registry::get('language');
|
||||
@ -22,6 +23,14 @@ class ControllerHealthHealth extends Controller {
|
||||
$this->template = "common/error.tpl";
|
||||
$this->data['errorstring'] = $this->data['text_you_are_not_admin'];
|
||||
}
|
||||
else {
|
||||
if(isset($_GET['toggle_enable_purge'])) {
|
||||
$this->model_health_health->toggle_option('enable_purge');
|
||||
header("Location: " . HEALTH_URL);
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
$this->render();
|
||||
|
@ -78,6 +78,8 @@ class ControllerHealthWorker extends Controller {
|
||||
|
||||
$this->data['sysinfo'] = $this->model_health_health->sysinfo();
|
||||
|
||||
$this->data['options'] = $this->model_health_health->get_options();
|
||||
|
||||
$this->render();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user