diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-01-18 07:30:22 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-01-18 07:30:22 +0000 |
| commit | 119cf7e1482960cabedad7716e7e2967849bdcd0 (patch) | |
| tree | 6f069f3384860fd88122f6f59abcc25ddb74c37f /installer/data/init_var.php | |
| parent | 4c13987e9266aa170cb7b2882d5f8579f262b3bb (diff) | |
Correct the mkdir for the sub directories in var
Diffstat (limited to 'installer/data/init_var.php')
| -rw-r--r-- | installer/data/init_var.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ <?php defined("SYSPATH") or die("No direct script access."); if (!file_exists(VARPATH)) { - if (!mkdir(VARPATH)) { + if (!@mkdir(VARPATH)) { throw new Exception("Unable to create directory '" . VARPATH . "'"); } chmod(VARPATH, 0777); } foreach (array("resizes", "modules", "uploads", "logs", "albums", "thumbs") as $dir) { - if (!@mkdir($dir)) { + if (!@mkdir("var/$dir")) { throw new Exception("Unable to create directory '$dir'"); } chmod("var/$dir", 0777); |
