From 4abab4ee4bc371b3451864fa57dc1910366ce0aa Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Mon, 3 Mar 2025 04:00:42 +0100 Subject: [PATCH] Removed $conf --- htdocs/core/lib/functions.lib.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index e7767a5666f..13f0967e9d1 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -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'))); } }