Removed $conf

This commit is contained in:
ldestailleur
2025-03-03 04:00:42 +01:00
parent d8c473a9eb
commit 4abab4ee4b

View File

@@ -8124,12 +8124,10 @@ function dol_mkdir($dir, $dataroot = '', $newmask = '')
*/
function dolChmod($filepath, $newmask = '')
{
global $conf;
if (!empty($newmask)) {
@chmod($filepath, octdec($newmask));
} elseif (getDolGlobalString('MAIN_UMASK')) {
@chmod($filepath, octdec($conf->global->MAIN_UMASK));
@chmod($filepath, octdec(getDolGlobalString('MAIN_UMASK')));
}
}