From 25a32db067bb71dd5f88a671836f3b33ddab94b3 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Wed, 23 Jul 2025 09:00:34 +0200 Subject: [PATCH] the slug is mandatory. so no if statement possible --- application/controllers/Widgets.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/application/controllers/Widgets.php b/application/controllers/Widgets.php index 87663d2c5..a7dbf64c3 100644 --- a/application/controllers/Widgets.php +++ b/application/controllers/Widgets.php @@ -91,12 +91,7 @@ class Widgets extends CI_Controller { return; } $data['userid'] = $this->publicsearch->get_userid_for_slug($data['slug']); - - if ($data['slug'] != null) { - $data['logo_url'] = base_url() . 'index.php/visitor/' . $data['slug']; - } else { - $data['logo_url'] = 'https://github.com/wavelog/wavelog'; - } + $data['logo_url'] = base_url() . 'index.php/visitor/' . $data['slug']; $this->load->model('themes_model'); $theme = $this->input->get('theme', TRUE);