Merge branch '9.0' of https://github.com/dolibarr/dolibarr into 9.0
This commit is contained in:
commit
deb9ac25a8
@ -48,6 +48,17 @@ if (! empty($conf->syslog->enabled))
|
|||||||
*/
|
*/
|
||||||
if ($action=='purge' && ! preg_match('/^confirm/i',$choice) && ($choice != 'allfiles' || $confirm == 'yes') )
|
if ($action=='purge' && ! preg_match('/^confirm/i',$choice) && ($choice != 'allfiles' || $confirm == 'yes') )
|
||||||
{
|
{
|
||||||
|
// Increase limit of time. Works only if we are not in safe mode
|
||||||
|
$ExecTimeLimit=600;
|
||||||
|
if (!empty($ExecTimeLimit))
|
||||||
|
{
|
||||||
|
$err=error_reporting();
|
||||||
|
error_reporting(0); // Disable all errors
|
||||||
|
//error_reporting(E_ALL);
|
||||||
|
@set_time_limit($ExecTimeLimit); // Need more than 240 on Windows 7/64
|
||||||
|
error_reporting($err);
|
||||||
|
}
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/utils.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/utils.class.php';
|
||||||
$utils = new Utils($db);
|
$utils = new Utils($db);
|
||||||
$result = $utils->purgeFiles($choice);
|
$result = $utils->purgeFiles($choice);
|
||||||
|
|||||||
@ -321,7 +321,7 @@ if (empty($reshook))
|
|||||||
|
|
||||||
$datep = dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear'));
|
$datep = dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear'));
|
||||||
$date_delivery = dol_mktime(12, 0, 0, GETPOST('date_livraisonmonth'), GETPOST('date_livraisonday'), GETPOST('date_livraisonyear'));
|
$date_delivery = dol_mktime(12, 0, 0, GETPOST('date_livraisonmonth'), GETPOST('date_livraisonday'), GETPOST('date_livraisonyear'));
|
||||||
$duration = GETPOST('duree_validite');
|
$duration = GETPOST('duree_validite', 'int');
|
||||||
|
|
||||||
if (empty($datep)) {
|
if (empty($datep)) {
|
||||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Date")), null, 'errors');
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Date")), null, 'errors');
|
||||||
@ -1544,7 +1544,7 @@ if ($action == 'create')
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Validaty duration
|
// Validaty duration
|
||||||
print '<tr><td class="fieldrequired">' . $langs->trans("ValidityDuration") . '</td><td><input name="duree_validite" size="5" value="' . $conf->global->PROPALE_VALIDITY_DURATION . '"> ' . $langs->trans("days") . '</td></tr>';
|
print '<tr><td class="fieldrequired">' . $langs->trans("ValidityDuration") . '</td><td><input name="duree_validite" class="width50" value="' . (GETPOST('duree_validite', 'int') ? GETPOST('duree_validite', 'int') : $conf->global->PROPALE_VALIDITY_DURATION) . '"> ' . $langs->trans("days") . '</td></tr>';
|
||||||
|
|
||||||
// Terms of payment
|
// Terms of payment
|
||||||
print '<tr><td class="nowrap fieldrequired">' . $langs->trans('PaymentConditionsShort') . '</td><td>';
|
print '<tr><td class="nowrap fieldrequired">' . $langs->trans('PaymentConditionsShort') . '</td><td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user