From 510d5bd64b72c9987c2603350b44868522daa128 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Tue, 24 Aug 2010 08:00:12 +0000 Subject: [PATCH] 2010-08-24 Sergio Martin * godmode/reporting/visual_console_builder.php: Fixed the size of the icons when choose 0 pixels into the wizard git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3176 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ .../godmode/reporting/visual_console_builder.php | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 2d639990e4..664d9ff705 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-08-24 Sergio Martin + + * godmode/reporting/visual_console_builder.php: Fixed + the size of the icons when choose 0 pixels into + the wizard + 2010-08-23 Sergio Martin * operation/agentes/networkmap.php: Add the feature of diff --git a/pandora_console/godmode/reporting/visual_console_builder.php b/pandora_console/godmode/reporting/visual_console_builder.php index 30997bf7d9..1b230fb4cd 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.php +++ b/pandora_console/godmode/reporting/visual_console_builder.php @@ -158,10 +158,10 @@ switch ($activeTab) { $width = (int) get_parameter ("width", 0); $height = (int) get_parameter ("height", 0); - if($width == 0 && $height == 0) { - $sizeBackground = getimagesize($config['homedir'] . '/images/console/background/' . $background); - $width = $sizeBackground[0]; - $height = $sizeBackground[1]; + if($width == 0 || $height == 0) { + $sizeImage = getimagesize($config['homedir'] . '/images/console/icons/' . $image . '.png'); + $width = $sizeImage[0]; + $height = $sizeImage[1]; } $message = '';