mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Removed $conf
This commit is contained in:
@@ -8124,12 +8124,10 @@ function dol_mkdir($dir, $dataroot = '', $newmask = '')
|
|||||||
*/
|
*/
|
||||||
function dolChmod($filepath, $newmask = '')
|
function dolChmod($filepath, $newmask = '')
|
||||||
{
|
{
|
||||||
global $conf;
|
|
||||||
|
|
||||||
if (!empty($newmask)) {
|
if (!empty($newmask)) {
|
||||||
@chmod($filepath, octdec($newmask));
|
@chmod($filepath, octdec($newmask));
|
||||||
} elseif (getDolGlobalString('MAIN_UMASK')) {
|
} elseif (getDolGlobalString('MAIN_UMASK')) {
|
||||||
@chmod($filepath, octdec($conf->global->MAIN_UMASK));
|
@chmod($filepath, octdec(getDolGlobalString('MAIN_UMASK')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user