From b4e1d642b7c2e9c72f82255eefd08c5c6f39acdd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 4 May 2009 18:45:56 +0000 Subject: [PATCH] Qual: Factorize code. Removed useless code. --- htdocs/html.form.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 3847915b9ae..d21c542132d 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -145,7 +145,7 @@ class Form } /** - * \brief Show a text with a picto and a tooltip on picto + * \brief Show a text with a picto and a tooltip on picto * \param text Text to show * \param htmltooltip Content of tooltip * \param direction 1=Icon is after text, -1=Icon is before text @@ -165,14 +165,13 @@ class Form * \param text Text to show * \param htmltooltip Content of tooltip * \param direction 1=Icon is after text, -1=Icon is before text - * \param usehelpcursor 1=Use a help cursor, 0=Use default cursor * \return string HTML code of text, picto, tooltip */ - function textwithpicto($text,$htmltext,$direction=1,$usehelpcursor=0,$type='help') + function textwithpicto($text,$htmltext,$direction=1,$type='help') { global $conf; $alt=''; - if ($type == 'help') $img=img_help($usehelpcursor,$alt); + if ($type == 'help') $img=img_help($alt); if ($type == 'warning') $img=img_warning($alt); if ($type == 'superadmin') $img=img_redstar($alt); if (empty($conf->use_javascript_ajax)) $alt='Help disabled (javascript disabled)';