summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2010-07-08 00:29:37 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2010-07-08 00:29:37 +0000
commitc83650d83ad8b1f4bda30cac2ae8efa6e1c97287 (patch)
tree482cf980e87cd7c80c28a89bb9395eba6b53026f /index.php
parenta0b0b415515bff5f9edd43d373e8e78f3b3f8e4d (diff)
parent9d66783f47636153bf3661d1d89e694dd5188c36 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/index.php b/index.php
index 6ef215ab..4ef3d943 100644
--- a/index.php
+++ b/index.php
@@ -64,9 +64,12 @@ if (PHP_SAPI == "cli") {
case "test":
array_splice($_SERVER["argv"], 1, 1, "gallery_unit_test");
define("TEST_MODE", 1);
- @mkdir("test/var/logs", 0777, true);
+ if (!is_dir("test/var")) {
+ @mkdir("test/var", 0777, true);
+ @mkdir("test/var/logs", 0777, true);
+ }
+ @copy("var/database.php", "test/var/database.php");
define("VARPATH", realpath("test/var") . "/");
- @copy("var/database.php", VARPATH . "database.php");
break;
default: