From 852c57a35e485d62d2a65ba6fe3bded5f8b5da4d Mon Sep 17 00:00:00 2001 From: NorHei Date: Sat, 29 Aug 2015 23:19:42 +0200 Subject: [PATCH] make_dir() had trouble whith umask on certain server configs, this fixes the problem --- wbce/framework/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wbce/framework/functions.php b/wbce/framework/functions.php index e2f0d31b7..721ab1641 100644 --- a/wbce/framework/functions.php +++ b/wbce/framework/functions.php @@ -383,7 +383,9 @@ function make_dir($dir_name, $dir_mode = OCTAL_DIR_MODE, $recursive = true) { $retVal = false; if (!is_dir($dir_name)) { + $umask = umask(0); $retVal = mkdir($dir_name, $dir_mode, $recursive); + umask($umask); } return $retVal; }