Merge remote-tracking branch 'origin/3.7' into develop
Conflicts: htdocs/compta/facture.php htdocs/product/stock/product.php
This commit is contained in:
commit
ca7a7a9038
@ -203,11 +203,14 @@ abstract class Stats
|
|||||||
dol_syslog(get_class($this).'::'.__FUNCTION__." save cache file ".$newpathofdestfile." onto disk.");
|
dol_syslog(get_class($this).'::'.__FUNCTION__." save cache file ".$newpathofdestfile." onto disk.");
|
||||||
if (! dol_is_dir($conf->user->dir_temp)) dol_mkdir($conf->user->dir_temp);
|
if (! dol_is_dir($conf->user->dir_temp)) dol_mkdir($conf->user->dir_temp);
|
||||||
$fp = fopen($newpathofdestfile, 'w');
|
$fp = fopen($newpathofdestfile, 'w');
|
||||||
fwrite($fp, json_encode($data));
|
if ($fp)
|
||||||
fclose($fp);
|
{
|
||||||
if (! empty($conf->global->MAIN_UMASK)) $newmask=$conf->global->MAIN_UMASK;
|
fwrite($fp, json_encode($data));
|
||||||
@chmod($newpathofdestfile, octdec($newmask));
|
fclose($fp);
|
||||||
|
if (! empty($conf->global->MAIN_UMASK)) $newmask=$conf->global->MAIN_UMASK;
|
||||||
|
@chmod($newpathofdestfile, octdec($newmask));
|
||||||
|
}
|
||||||
|
else dol_syslog("Failed to write cache file", LOG_ERR);
|
||||||
$this->_lastfetchdate[get_class($this).'_'.__FUNCTION__]=$nowgmt;
|
$this->_lastfetchdate[get_class($this).'_'.__FUNCTION__]=$nowgmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,11 +312,13 @@ abstract class Stats
|
|||||||
dol_syslog(get_class($this).'::'.__FUNCTION__." save cache file ".$newpathofdestfile." onto disk.");
|
dol_syslog(get_class($this).'::'.__FUNCTION__." save cache file ".$newpathofdestfile." onto disk.");
|
||||||
if (! dol_is_dir($conf->user->dir_temp)) dol_mkdir($conf->user->dir_temp);
|
if (! dol_is_dir($conf->user->dir_temp)) dol_mkdir($conf->user->dir_temp);
|
||||||
$fp = fopen($newpathofdestfile, 'w');
|
$fp = fopen($newpathofdestfile, 'w');
|
||||||
fwrite($fp, json_encode($data));
|
if ($fp)
|
||||||
fclose($fp);
|
{
|
||||||
if (! empty($conf->global->MAIN_UMASK)) $newmask=$conf->global->MAIN_UMASK;
|
fwrite($fp, json_encode($data));
|
||||||
@chmod($newpathofdestfile, octdec($newmask));
|
fclose($fp);
|
||||||
|
if (! empty($conf->global->MAIN_UMASK)) $newmask=$conf->global->MAIN_UMASK;
|
||||||
|
@chmod($newpathofdestfile, octdec($newmask));
|
||||||
|
}
|
||||||
$this->_lastfetchdate[get_class($this).'_'.__FUNCTION__]=$nowgmt;
|
$this->_lastfetchdate[get_class($this).'_'.__FUNCTION__]=$nowgmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -413,7 +413,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '<table id="tablelines" class="noborder" width="100%">';
|
print '<table id="tablelines" class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre nodrag nodrop">';
|
||||||
// print '<td>'.$langs->trans("Project").'</td>';
|
// print '<td>'.$langs->trans("Project").'</td>';
|
||||||
print '<td width="100">'.$langs->trans("RefTask").'</td>';
|
print '<td width="100">'.$langs->trans("RefTask").'</td>';
|
||||||
print '<td>'.$langs->trans("LabelTask").'</td>';
|
print '<td>'.$langs->trans("LabelTask").'</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user