summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@227.1.241.10.in-addr.arpa>2010-06-14 14:43:14 -0400
committerChad Kieffer <ckieffer@227.1.241.10.in-addr.arpa>2010-06-14 14:43:14 -0400
commit3c6e710aa75b309fd7ff50aa8f5c58721b17770f (patch)
tree062b516f3fad5921e4ace326fa6b2f7f868ca87e /index.php
parent782c1e0ae0bc597629abcd88f844d863da45901a (diff)
parent793780daa7665f7f86994235c4263fcb63554eb8 (diff)
Merge branch 'master' of 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: