From ff25d804aa0f1eadfedcf15952cf7ab8dd101f49 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Tue, 28 May 2024 10:04:01 +0200 Subject: [PATCH] Reduces same db calls --- application/controllers/Dashboard.php | 1 + application/views/dashboard/index.php | 10 +++++----- application/views/interface_assets/header.php | 8 +++++--- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/application/controllers/Dashboard.php b/application/controllers/Dashboard.php index 1ee7e8bc6..2968cbcf6 100644 --- a/application/controllers/Dashboard.php +++ b/application/controllers/Dashboard.php @@ -50,6 +50,7 @@ class Dashboard extends CI_Controller { $data['current_active'] = $this->stations->find_active(); $data['themesWithoutMode'] = $this->setup_model->checkThemesWithoutMode(); + $data['dashboard_map'] = $this->optionslib->get_option('dashboard_map'); $setup_required = false; diff --git a/application/views/dashboard/index.php b/application/views/dashboard/index.php index a00b5d49a..5dca5035a 100644 --- a/application/views/dashboard/index.php +++ b/application/views/dashboard/index.php @@ -30,12 +30,12 @@ function echo_table_col($row, $name) { case 'SOTA': echo '
| diff --git a/application/views/interface_assets/header.php b/application/views/interface_assets/header.php index 43313e8b7..d45796570 100644 --- a/application/views/interface_assets/header.php +++ b/application/views/interface_assets/header.php @@ -15,12 +15,14 @@ - optionslib->get_theme()) { ?> - + optionslib->get_theme(); + if ($theme) { ?> + - + |