removed <?= php abbreviations

This commit is contained in:
SJ
2012-04-27 14:39:10 +02:00
parent d4808b2b4a
commit 987d27856a
18 changed files with 148 additions and 63 deletions

View File

@ -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();

View File

@ -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();
}