[Qual] Uniformize code
This commit is contained in:
parent
442006dba5
commit
5e3c89fdbd
@ -829,7 +829,7 @@ $bcnd=array(0=>'class="impair nodrag nodrop nohover"',1=>'class="pair nodrag nod
|
|||||||
|
|
||||||
// Define messages variables
|
// Define messages variables
|
||||||
$mesg=''; $warning=''; $error=0;
|
$mesg=''; $warning=''; $error=0;
|
||||||
// deprecated, see setEventMessage() and dol_htmloutput_events()
|
// deprecated, see setEventMessages() and dol_htmloutput_events()
|
||||||
$mesgs=array(); $warnings=array(); $errors=array();
|
$mesgs=array(); $warnings=array(); $errors=array();
|
||||||
|
|
||||||
// Constants used to defined number of lines in textarea
|
// Constants used to defined number of lines in textarea
|
||||||
|
|||||||
@ -46,12 +46,12 @@ if ($actionsave)
|
|||||||
if ($i >= 1)
|
if ($i >= 1)
|
||||||
{
|
{
|
||||||
$db->commit();
|
$db->commit();
|
||||||
setEventMessage($langs->trans("SetupSaved"));
|
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$db->rollback();
|
$db->rollback();
|
||||||
setEventMessage($langs->trans("Error"), 'errors');
|
setEventMessages($langs->trans("Error"), null, 'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user