summaryrefslogtreecommitdiff
path: root/core/controllers/welcome.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/controllers/welcome.php')
-rw-r--r--core/controllers/welcome.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php
index 99d8010f..af9932d4 100644
--- a/core/controllers/welcome.php
+++ b/core/controllers/welcome.php
@@ -496,7 +496,7 @@ class Welcome_Controller extends Template_Controller {
$init_g3 = array_merge($init_g3, array(
"if (!file_exists(VARPATH)) {",
- " if (!mkdir(VARPATH)) {",
+ " if (!@mkdir(VARPATH)) {",
" throw new Exception(\"Unable to create directory '\" . VARPATH . \"'\");",
" }",
" chmod(VARPATH, 0777);",
@@ -515,7 +515,7 @@ class Welcome_Controller extends Template_Controller {
$init_g3 = array_merge($init_g3, array(
"foreach (array(" . implode(", ", $sub_dirs) . ") as \$dir) {",
- " if (!@mkdir(\$dir)) {",
+ " if (!@mkdir(\"var/\$dir\")) {",
" throw new Exception(\"Unable to create directory '\$dir'\");",
" }",
" chmod(\"var/\$dir\", 0777);",