diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4b718cbfdd..1845f58038 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-01-26 Juan Manuel Ramon + * include/functions_html.php: In print_image function checks if skin + path is set for the current user and if it exists add it to the image path. + Added pos_tree option on print_image function. + 2011-01-26 Javier Lanz * include/functions_custom_graphs.php: Added 'date' parameter diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 23d0b55e7a..80e14e0c9a 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -1084,6 +1084,16 @@ function print_checkbox ($name, $value, $checked = false, $return = false, $disa * @return string HTML code if return parameter is true. */ function print_image ($src, $return = false, $options = false) { + + /* Checks if user's skin is available */ + $isFunctionSkins = enterprise_include_once ('include/functions_skins.php'); + + if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) { + $skin_path = enterprise_hook('get_image_skin_path',array($src)); + if ($skin_path) + $src = $skin_path; + } + $output = '