Use dolChmod

This commit is contained in:
Laurent Destailleur
2023-02-17 19:30:50 +01:00
parent d976372d87
commit 0b4cacd291
101 changed files with 247 additions and 428 deletions

View File

@@ -1210,9 +1210,7 @@ function getAllImages($object, $objectpage, $urltograb, &$tmp, &$action, $modify
$fp = fopen($filetosave, "w");
fputs($fp, $tmpgeturl['content']);
fclose($fp);
if (!empty($conf->global->MAIN_UMASK)) {
@chmod($filetosave, octdec($conf->global->MAIN_UMASK));
}
dolChmod($filetosave);
}
}
}
@@ -1281,9 +1279,7 @@ function getAllImages($object, $objectpage, $urltograb, &$tmp, &$action, $modify
$fp = fopen($filetosave, "w");
fputs($fp, $tmpgeturl['content']);
fclose($fp);
if (!empty($conf->global->MAIN_UMASK)) {
@chmod($filetosave, octdec($conf->global->MAIN_UMASK));
}
dolChmod($filetosave);
}
}
}