diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index fa152c651f..e42e18d28e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2013-11-19 Miguel de Dios + + * include/config_process.php: added lost line about the autorefresh. + + * include/functions_html.php: re-fixed the images from metaconsole. + 2013-11-19 Sergio Martin * operation/events/events.build_query.php: Fixed a diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 07e980d820..be93bdcaff 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -219,6 +219,7 @@ $config['autorefresh_white_list'] = array( 'operation/snmpconsole/snmp_view', 'operation/agentes/networkmap', 'enterprise/operation/services/services', + 'operation/visual_console/render_view', 'operation/events/events'); // Specific metaconsole autorefresh white list sections diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 001f8fcac9..21bf60c949 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -1641,7 +1641,6 @@ function html_print_image ($src, $return = false, $options = false, $return_src // If metaconsole is activated and image doesn't exists try to search on normal console - if (defined('METACONSOLE')) { if (!$relative) { if (strstr(getcwd(), 'enterprise/meta') === false) { @@ -1657,7 +1656,14 @@ function html_print_image ($src, $return = false, $options = false, $return_src } } else { - if (!is_readable($src)) { + if ($src[0] !== '/') { + $src = '/' . $src; + } + + if (is_readable(getcwd() . $src)) { + $src = ui_get_full_url($src); + } + else if (!is_readable($src)) { $src = ui_get_full_url('../../' . $src); } } @@ -1673,7 +1679,6 @@ function html_print_image ($src, $return = false, $options = false, $return_src } } - // Only return src field of image if ($return_src) { if (!$return) {