From 119cf7e1482960cabedad7716e7e2967849bdcd0 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 18 Jan 2009 07:30:22 +0000 Subject: Correct the mkdir for the sub directories in var --- core/controllers/welcome.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/controllers') 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);", -- cgit v1.2.3