mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
only load themes model if get parameter isn't empty
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user