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