forked from Wavyzz/dolibarr
Uniformize error report
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
* \file htdocs/compta/bank/virement.php
|
||||
* \ingroup banque
|
||||
* \brief Page de saisie d'un virement
|
||||
* \version $Id$
|
||||
* \version $Id: virement.php,v 1.47 2011/07/04 10:33:56 eldy Exp $
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
@@ -138,9 +138,7 @@ $html=new Form($db);
|
||||
|
||||
print_fiche_titre($langs->trans("BankTransfer"));
|
||||
|
||||
if ($mesg) {
|
||||
print "$mesg<br>";
|
||||
}
|
||||
dol_htmloutput_mesg($mesg);
|
||||
|
||||
print $langs->trans("TransferDesc");
|
||||
print "<br><br>";
|
||||
@@ -178,5 +176,5 @@ print "</form>";
|
||||
|
||||
$db->close();
|
||||
|
||||
llxFooter('$Date$ - $Revision$');
|
||||
llxFooter('$Date: 2011/07/04 10:33:56 $ - $Revision: 1.47 $');
|
||||
?>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user