From 7d597ea1a4437e0a6baf23f93333b6412920dade Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 4 May 2009 18:48:23 +0000 Subject: [PATCH] Qual: Factorize code. Removed useless code. --- htdocs/html.form.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 7cbb156a4ac..8584d8d8fd3 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -171,10 +171,10 @@ class Form { global $conf; $alt=''; - if ($type == 'help') $img=img_help(1,$alt); + if (empty($conf->use_javascript_ajax)) $alt='Help disabled (javascript disabled)'; + $img=img_help(1,$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)'; return $this->textwithtooltip($text,$htmltext,2,$direction,$img); }