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'); } }