Fix missing cache dir

This commit is contained in:
Laurent Destailleur 2016-10-25 20:46:21 +02:00
parent 01dd8fee48
commit 4a3251407f

View File

@ -42,10 +42,18 @@ if ($action == 'setproductionmode')
$status = GETPOST('status','alpha'); $status = GETPOST('status','alpha');
if (dolibarr_set_const($db, 'API_PRODUCTION_MODE', $status, 'chaine', 0, '', $conf->entity) > 0) if (dolibarr_set_const($db, 'API_PRODUCTION_MODE', $status, 'chaine', 0, '', $conf->entity) > 0)
{
$result = dol_mkdir($conf->api->dir_temp);
if ($result < 0)
{
setEventMessages($langs->trans("ErrorFaildToCreateDir", $conf->api->dir_temp), null, 'errors');
}
else
{ {
header("Location: ".$_SERVER["PHP_SELF"]); header("Location: ".$_SERVER["PHP_SELF"]);
exit; exit;
} }
}
else else
{ {
dol_print_error($db); dol_print_error($db);