From 06de8b3d4ddb82e100cb98d64f62a0b9ff37964e Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 25 Sep 2024 12:21:45 +0200 Subject: [PATCH] fix image login by default #222 --- pandora_console/general/login_page.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index f36e8cd343..6a88ea973f 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -244,12 +244,8 @@ if (is_metaconsole() === true) { html_print_image(ui_get_full_url('enterprise/images/custom_logo_login/'.$config['custom_logo_login']), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } } else { - if ($config['custom_logo_login'] === 'Pandora-FMS-1.png') { - $theme_logo = ($config['style'] === 'pandora') ? 'images/custom_logo_login/Pandora-FMS-alt-black.png' : 'images/custom_logo_login/'.$config['custom_logo_login']; - html_print_image(ui_get_full_url($theme_logo), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); - } else { - html_print_image(ui_get_full_url('images/custom_logo_login/'.$config['custom_logo_login']), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); - } + $theme_logo = ($config['style'] === 'pandora') ? 'images/custom_logo_login/Pandora-FMS-alt-black.png' : 'images/custom_logo_login/Pandora-FMS-1.png'; + html_print_image(ui_get_full_url($theme_logo), false, ['class' => 'login_logo', 'alt' => 'logo', 'border' => 0, 'title' => $logo_title], false, true); } echo '';