mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-12 19:02:35 +01:00
Minor fixes
This commit is contained in:
@@ -278,12 +278,19 @@ class RssParser
|
||||
dol_syslog(get_class($this)."::parser cache file ".$newpathofdestfile." is saved onto disk.");
|
||||
if (! dol_is_dir($cachedir)) dol_mkdir($cachedir);
|
||||
$fp = fopen($newpathofdestfile, 'w');
|
||||
fwrite($fp, $str);
|
||||
fclose($fp);
|
||||
if (! empty($conf->global->MAIN_UMASK)) $newmask=$conf->global->MAIN_UMASK;
|
||||
@chmod($newpathofdestfile, octdec($newmask));
|
||||
if ($fp)
|
||||
{
|
||||
fwrite($fp, $str);
|
||||
fclose($fp);
|
||||
if (! empty($conf->global->MAIN_UMASK)) $newmask=$conf->global->MAIN_UMASK;
|
||||
@chmod($newpathofdestfile, octdec($newmask));
|
||||
|
||||
$this->_lastfetchdate=$nowgmt;
|
||||
$this->_lastfetchdate=$nowgmt;
|
||||
}
|
||||
else
|
||||
{
|
||||
print 'Error, failed to open file '.$newpathofdestfile.' for write';
|
||||
}
|
||||
}
|
||||
|
||||
unset($str); // Free memory
|
||||
|
||||
Reference in New Issue
Block a user