summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-10 08:16:07 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-10 08:16:07 -0700
commit6119ddc735ccfa6816b78bb7028c56dabf322019 (patch)
treeb9cccdf2fb28e67b5cf37b26d0e0635a8cf7ad2a /index.php
parentd5b80f29444e03aadc1130ab1624a09c0689fb93 (diff)
parent26d0af45eabe962c5366cb1e95de7e252b831796 (diff)
Merge branch 'master' into talmdal_dev
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: