aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/template.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/template.class.php b/include/template.class.php
index b8846a561..7a2d91222 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -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);
}