Qual: Factorize code. Removed useless code.

This commit is contained in:
Laurent Destailleur 2009-05-04 18:48:23 +00:00
parent 70d0017798
commit 7d597ea1a4

View File

@ -171,10 +171,10 @@ class Form
{ {
global $conf; global $conf;
$alt=''; $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 == 'warning') $img=img_warning($alt);
if ($type == 'superadmin') $img=img_redstar($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); return $this->textwithtooltip($text,$htmltext,2,$direction,$img);
} }