[ task #1036 ] Normalized usage of setEventMessage instead of

dol_htmloutput_mesg
This commit is contained in:
simnandez
2013-08-20 16:10:01 +02:00
parent 913888824f
commit db46bc88ca
4 changed files with 53 additions and 63 deletions

View File

@@ -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();