From 30d22378acf369a8e141a16d80f06f2c0427cfaa Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Fri, 3 Aug 2012 13:10:15 +0200 Subject: [PATCH] Restore img_phone as deprecated function after a patch push. --- htdocs/core/lib/functions.lib.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 52e06332330..f58b1e0db19 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2048,6 +2048,25 @@ function img_mime($file, $alt = '') } +/** + * Show phone logo. + * Use img_picto instead. + * + * @param string $alt Text to show on alt image + * @param int $option Option + * @return string Return img tag + * @deprecated + */ +function img_phone($alt = "default",$option=0) +{ + global $conf,$langs; + if ($alt=="default") $alt=$langs->trans("Call"); + $img='call_out'; + 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).'">'; +} + + /** * Show information for admin users * -- GitLab