From 354377a56a644129166ec56fff833a6279fe268d Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Mon, 20 Feb 2017 17:28:38 +0100 Subject: [PATCH] Changed the agent name by its alias --- pandora_console/godmode/agentes/configurar_agente.php | 2 +- pandora_console/include/functions_pandora_networkmap.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/agentes/configurar_agente.php b/pandora_console/godmode/agentes/configurar_agente.php index df1f7ea020..7df30ede70 100644 --- a/pandora_console/godmode/agentes/configurar_agente.php +++ b/pandora_console/godmode/agentes/configurar_agente.php @@ -559,7 +559,7 @@ if ($id_agente) { } $agent = db_get_row ('tagente', 'id_agente', $id_agente); ui_print_page_header ($agent["nombre"], - "images/setup.png", false, $help_header , true, $onheader,$agent["alias"] . ' ' . $tab_description); + "images/setup.png", false, $help_header , true, $onheader, false, '', GENERIC_SIZE_TEXT, $agent["alias"] . ' ' . $tab_description); } else { // Create agent diff --git a/pandora_console/include/functions_pandora_networkmap.php b/pandora_console/include/functions_pandora_networkmap.php index db2fb980bb..fde4a78a3d 100644 --- a/pandora_console/include/functions_pandora_networkmap.php +++ b/pandora_console/include/functions_pandora_networkmap.php @@ -851,7 +851,7 @@ function networkmap_loadfile($id = 0, $file = '', case 'agent': $data['id_agent'] = $ids[$node_id]['id_agent']; - $text = agents_get_name($ids[$node_id]['id_agent']); + $text = agents_get_alias($ids[$node_id]['id_agent']); $text = io_safe_output($text); $text = ui_print_truncate_text($text, 'agent_medium', false, true, false,