diff options
Diffstat (limited to 'localwebsite/handlers')
-rw-r--r-- | localwebsite/handlers/MiscHandler.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/localwebsite/handlers/MiscHandler.php b/localwebsite/handlers/MiscHandler.php index 4d2e20a..657395e 100644 --- a/localwebsite/handlers/MiscHandler.php +++ b/localwebsite/handlers/MiscHandler.php @@ -4,7 +4,12 @@ class MiscHandler extends RequestHandler { public function GET_main() { + global $config; $this->tpl->set_title('Главная'); + $this->tpl->set([ + 'grafana_sensors_url' => $config['grafana_sensors_url'], + 'grafana_inverter_url' => $config['grafana_inverter_url'], + ]); $this->tpl->render_page('index.twig'); } |