diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index f4f9bd89945..48193d95405 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -3448,13 +3448,14 @@ function monthArrayOrSelected($selected=0) /** - * Returns formated errors messages - * @param mesgstring Error message - * @param mesgarray Error messages array + * Returns formated messages (Used to show messages on html output) + * @param mesgstring Message + * @param mesgarray Messages array + * @param style Style of message output * @return html Return html output * @see dol_print_error */ -function dol_htmloutput_errors($mesgstring='',$mesgarray='') +function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok') { global $langs; @@ -3463,7 +3464,7 @@ function dol_htmloutput_errors($mesgstring='',$mesgarray='') if (is_array($mesgarray) && sizeof($mesgarray)) { - print '