From d9f24ad60844d7a7cf93ec1667d4f51ef5fb05e0 Mon Sep 17 00:00:00 2001 From: Aldrioth Date: Wed, 27 Jul 2011 10:06:19 +0000 Subject: [PATCH] 2011-07-27 Tomas Palacios * godmode/setup/news.php: fixed a bug regarding unability to add new objects to visual maps using the wizard. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4631 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/include/functions_visual_map.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 3d6bac2a78..6e68ad6892 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -252,7 +252,7 @@ function visual_map_process_wizard_add ($id_agents, $image, $id_layout, $range, $pos_x = $pos_x + $range; } - $return = print_success_message (__('Agent successfully added to layout'), '', true); + $return = ui_print_success_message (__('Agent successfully added to layout'), '', true); return $return; } @@ -271,8 +271,8 @@ function visual_map_process_wizard_add ($id_agents, $image, $id_layout, $range, */ function visual_map_process_wizard_add_modules ($id_modules, $image, $id_layout, $range, $width = 0, $height = 0) { if (empty ($id_modules)) { - $return = print_error_message (__('No modules selected'), '', true); - return false; + $return = ui_print_error_message (__('No modules selected'), '', true); + return $return; } $id_modules = (array) $id_modules; @@ -305,7 +305,7 @@ function visual_map_process_wizard_add_modules ($id_modules, $image, $id_layout, $pos_x = $pos_x + $range; } - $return = print_success_message (__('Modules successfully added to layout'), '', true); + $return = ui_print_success_message (__('Modules successfully added to layout'), '', true); return $return; }