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 ++-- installer/data/init_var.php | 4 ++-- installer/data/install.sql | 2 +- 3 files changed, 5 insertions(+), 5 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);", diff --git a/installer/data/init_var.php b/installer/data/init_var.php index 5bc619aa..42d50c0a 100644 --- a/installer/data/init_var.php +++ b/installer/data/init_var.php @@ -1,12 +1,12 @@