mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 07:32:32 +01:00
Optimize speed
This commit is contained in:
@@ -3459,10 +3459,10 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok')
|
||||
global $langs;
|
||||
|
||||
$ret = 0;
|
||||
$langs->load("errors");
|
||||
|
||||
if (is_array($mesgarray) && sizeof($mesgarray))
|
||||
{
|
||||
$langs->load("errors");
|
||||
print '<div class="'.$style.'">';
|
||||
foreach($mesgarray as $message)
|
||||
{
|
||||
@@ -3473,6 +3473,7 @@ function dol_htmloutput_mesg($mesgstring='',$mesgarray='', $style='ok')
|
||||
}
|
||||
if ($mesgstring)
|
||||
{
|
||||
$langs->load("errors");
|
||||
$ret++;
|
||||
print '<div class="'.$style.'">';
|
||||
print $langs->trans($mesgstring);
|
||||
|
||||
Reference in New Issue
Block a user