summaryrefslogtreecommitdiff
path: root/core/controllers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-01-18 07:30:22 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-01-18 07:30:22 +0000
commit119cf7e1482960cabedad7716e7e2967849bdcd0 (patch)
tree6f069f3384860fd88122f6f59abcc25ddb74c37f /core/controllers
parent4c13987e9266aa170cb7b2882d5f8579f262b3bb (diff)
Correct the mkdir for the sub directories in var
Diffstat (limited to 'core/controllers')
-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);",