Skip to content

Commit

Permalink
make_dir() had trouble whith umask on certain server configs, this fi…
Browse files Browse the repository at this point in the history
…xes the problem
  • Loading branch information
NorHei committed Aug 29, 2015
1 parent 4f2866b commit 852c57a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wbce/framework/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 852c57a

Please sign in to comment.