[Qual] Uniformize code

This commit is contained in:
philippe grand 2015-12-21 22:59:12 +01:00
parent 442006dba5
commit 5e3c89fdbd
2 changed files with 3 additions and 3 deletions

View File

@ -829,7 +829,7 @@ $bcnd=array(0=>'class="impair nodrag nodrop nohover"',1=>'class="pair nodrag nod
// Define messages variables
$mesg=''; $warning=''; $error=0;
// deprecated, see setEventMessage() and dol_htmloutput_events()
// deprecated, see setEventMessages() and dol_htmloutput_events()
$mesgs=array(); $warnings=array(); $errors=array();
// Constants used to defined number of lines in textarea

View File

@ -46,12 +46,12 @@ if ($actionsave)
if ($i >= 1)
{
$db->commit();
setEventMessage($langs->trans("SetupSaved"));
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
}
else
{
$db->rollback();
setEventMessage($langs->trans("Error"), 'errors');
setEventMessages($langs->trans("Error"), null, 'errors');
}
}