From 5e3c89fdbdfa0941110d79313b382dae54d0d370 Mon Sep 17 00:00:00 2001 From: philippe grand Date: Mon, 21 Dec 2015 22:59:12 +0100 Subject: [PATCH] [Qual] Uniformize code --- htdocs/main.inc.php | 2 +- htdocs/webservices/admin/index.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 890027c9d30..1c35968790c 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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 diff --git a/htdocs/webservices/admin/index.php b/htdocs/webservices/admin/index.php index f75c60c6c45..5d21c97ce5f 100644 --- a/htdocs/webservices/admin/index.php +++ b/htdocs/webservices/admin/index.php @@ -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'); } }