From b6d4416921defec844d014d2410d019a157b3a72 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Wed, 28 Jun 2017 12:37:40 +0200 Subject: [PATCH] Let use png logo images for reports - #1057 --- pandora_console/godmode/setup/setup_visuals.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php index 85a3260494..97d1b5deac 100755 --- a/pandora_console/godmode/setup/setup_visuals.php +++ b/pandora_console/godmode/setup/setup_visuals.php @@ -576,7 +576,7 @@ $row++; $dirItems = scandir($config['homedir'] . '/images/custom_logo'); foreach ($dirItems as $entryDir) { - if (strstr($entryDir, '.jpg') !== false) { + if (strstr($entryDir, '.jpg') !== false || strstr($entryDir, '.png') !== false) { $customLogos['images/custom_logo/' . $entryDir] = $entryDir; } } @@ -599,7 +599,7 @@ $table_other->data['custom_report_front-font'][1] = html_print_select ($_fonts, $table_other->data['custom_report_front-logo'][0] = __('Custom report front') . ' - ' . __('Custom logo') . ui_print_help_tip( - __("The dir of custom logos is in your www Pandora Console in \"images/custom_logo\". You can upload more files (ONLY JPEG) in upload tool in console."), true); + __("The dir of custom logos is in your www Pandora Console in \"images/custom_logo\". You can upload more files (ONLY JPEG AND PNG) in upload tool in console."), true); $table_other->data['custom_report_front-logo'][1] = html_print_select( $customLogos, 'custom_report_front_logo',