the slug is mandatory. so no if statement possible

This commit is contained in:
HB9HIL
2025-07-23 09:00:34 +02:00
parent 0be073de03
commit 25a32db067

View File

@@ -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);