diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/controllers/welcome.php | 3 | ||||
-rw-r--r-- | core/images/gallery2.png | bin | 0 -> 22178 bytes |
2 files changed, 2 insertions, 1 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index e009452f..6130f0ed 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -541,7 +541,8 @@ class Welcome_Controller extends Template_Controller { } if ($file->isDir()) { - fwrite($fd, "mkdir(\"var/" . substr($name, strlen(VARPATH)) . "\");\n"); + $path = "VARPATH . \"" . substr($name, strlen(VARPATH)) . "\""; + fwrite($fd, "!file_exists($path) && mkdir($path);\n"); } else { // @todo: serialize non-directories print "Unknown file: $name"; diff --git a/core/images/gallery2.png b/core/images/gallery2.png Binary files differnew file mode 100644 index 00000000..ca8e0e95 --- /dev/null +++ b/core/images/gallery2.png |