From 7cf7704cebc9dba321b9e540d0ed6eef1840d04d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 30 Apr 2005 17:27:06 +0000 Subject: [PATCH] Ajout fonction img_error --- htdocs/lib/functions.inc.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index ece3bcc9b76..f296130849a 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -518,10 +518,21 @@ function img_info($alt = "default") function img_warning($alt = "default") { global $conf,$langs; - if ($alt=="default") $alt=$langs->trans("Show"); + if ($alt=="default") $alt=$langs->trans("Warning"); return ''.$alt.''; } +/** + \brief Affiche logo warning + \param alt Texte sur le alt de l'image +*/ +function img_error($alt = "default") +{ + global $conf,$langs; + if ($alt=="default") $alt=$langs->trans("Error"); + return ''.$alt.''; +} + /** \brief Affiche logo alerte \param alt Texte sur le alt de l'image