From 5ef8254864ce60d3c165d8ad2598327b6b70a1a5 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Wed, 23 Jul 2025 09:01:45 +0200 Subject: [PATCH] only load themes model if get parameter isn't empty --- application/controllers/Widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Widgets.php b/application/controllers/Widgets.php index a7dbf64c3..fa170cf1a 100644 --- a/application/controllers/Widgets.php +++ b/application/controllers/Widgets.php @@ -93,9 +93,9 @@ class Widgets extends CI_Controller { $data['userid'] = $this->publicsearch->get_userid_for_slug($data['slug']); $data['logo_url'] = base_url() . 'index.php/visitor/' . $data['slug']; - $this->load->model('themes_model'); $theme = $this->input->get('theme', TRUE); if ($theme != null) { + $this->load->model('themes_model'); if (($this->themes_model->get_theme_mode($theme) ?? '') != '') { $data['theme'] = $theme; } else {