Using explicit flags while creating new directories instead of relying on default flags
This commit is contained in:
parent
be3ad3bd19
commit
12f8cec2e7
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ class Template
|
|||
if (!isset($conf['data_dir_checked']))
|
||||
{
|
||||
$dir = PHPWG_ROOT_PATH.$conf['data_location'];
|
||||
mkgetdir($dir, MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR);
|
||||
mkgetdir($dir, MKGETDIR_RECURSIVE | MKGETDIR_PROTECT_INDEX);
|
||||
if (!is_writable($dir))
|
||||
{
|
||||
load_language('admin.lang');
|
||||
|
@ -1923,7 +1923,7 @@ final class FileCombiner
|
|||
$output .= "\n";
|
||||
}
|
||||
$output = "/*BEGIN header */\n" . $header . "\n" . $output;
|
||||
mkgetdir( dirname(PHPWG_ROOT_PATH.$file) );
|
||||
mkgetdir( dirname(PHPWG_ROOT_PATH.$file), MKGETDIR_RECURSIVE | MKGETDIR_DIE_ON_ERROR | MKGETDIR_PROTECT_INDEX );
|
||||
file_put_contents( PHPWG_ROOT_PATH.$file, $output );
|
||||
@chmod(PHPWG_ROOT_PATH.$file, 0644);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue