Little refactor + cpd

This commit is contained in:
Marcos García 2012-08-03 14:30:11 +02:00
parent 30d22378ac
commit f700f63494

View File

@ -2057,13 +2057,16 @@ function img_mime($file, $alt = '')
* @return string Return img tag * @return string Return img tag
* @deprecated * @deprecated
*/ */
function img_phone($alt = "default",$option=0) function img_phone($alt = 'default', $option = 0)
{ {
global $conf,$langs; global $conf,$langs;
if ($alt=="default") $alt=$langs->trans("Call");
$img='call_out'; if ($alt == 'default') $alt = $langs->trans('Call');
if ($option == 1) $img='call';
return '<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/'.$img.'.png" border="0" alt="'.dol_escape_htmltag($alt).'" title="'.dol_escape_htmltag($alt).'">'; if ($option == 1) $img = 'call';
else $img = 'call_out';
return img_picto($alt, $img);
} }