2
0
forked from Wavyzz/dolibarr

Uniformize error report

This commit is contained in:
Laurent Destailleur
2011-07-04 10:33:56 +00:00
parent a0e6bb5e9c
commit b3345bbfc1
2 changed files with 5 additions and 6 deletions

View File

@@ -29,7 +29,7 @@
* \file htdocs/lib/functions.lib.php
* \brief A set of functions for Dolibarr
* This file contains all frequently used functions.
* \version $Id: functions.lib.php,v 1.537 2011/07/04 08:53:01 eldy Exp $
* \version $Id: functions.lib.php,v 1.538 2011/07/04 10:33:56 eldy Exp $
*/
// For compatibility during upgrade
@@ -3880,6 +3880,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok', $keepemb
if ($iserror)
{
$mesgstring=preg_replace('/<\/div><div class="error">/','<br>',$mesgstring);
$mesgstring=preg_replace('/<div class="error">/','',$mesgstring);
$mesgstring=preg_replace('/<\/div>/','',$mesgstring);
print get_htmloutput_mesg($mesgstring,$mesgarray,'error',$keepembedded);