mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-13 19:25:22 +01:00
[ task #1036 ] Normalized usage of setEventMessage instead of
dol_htmloutput_mesg
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -43,12 +44,12 @@ if (GETPOST("action") == 'set_proxy')
|
||||
{
|
||||
if (GETPOST("MAIN_USE_CONNECT_TIMEOUT") && ! is_numeric(GETPOST("MAIN_USE_CONNECT_TIMEOUT")))
|
||||
{
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorValueMustBeInteger").'</div>';
|
||||
setEventMessage($langs->trans("ErrorValueMustBeInteger"),'errors');
|
||||
$error++;
|
||||
}
|
||||
if (GETPOST("MAIN_USE_RESPONSE_TIMEOUT") && ! is_numeric(GETPOST("MAIN_USE_RESPONSE_TIMEOUT")))
|
||||
{
|
||||
$mesg='<div class="error">'.$langs->trans("ErrorValueMustBeInteger").'</div>';
|
||||
setEventMessage($langs->trans("ErrorValueMustBeInteger"),'errors');
|
||||
$error++;
|
||||
}
|
||||
|
||||
@@ -67,7 +68,7 @@ if (GETPOST("action") == 'set_proxy')
|
||||
|
||||
if (! $error)
|
||||
{
|
||||
$mesg='<div class="ok">'.$langs->trans("RecordModifiedSuccessfully").'</div>';
|
||||
setEventMessage($langs->trans("RecordModifiedSuccessfully"));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,10 +204,6 @@ print '</center>';
|
||||
|
||||
print '</form><br>';
|
||||
|
||||
|
||||
dol_htmloutput_mesg($mesg);
|
||||
|
||||
|
||||
$db->close();
|
||||
|
||||
llxFooter();
|
||||
|
||||
Reference in New Issue
Block a user