diff options
author | Chad Kieffer <ckieffer@227.1.241.10.in-addr.arpa> | 2010-06-14 14:43:14 -0400 |
---|---|---|
committer | Chad Kieffer <ckieffer@227.1.241.10.in-addr.arpa> | 2010-06-14 14:43:14 -0400 |
commit | 3c6e710aa75b309fd7ff50aa8f5c58721b17770f (patch) | |
tree | 062b516f3fad5921e4ace326fa6b2f7f868ca87e /index.php | |
parent | 782c1e0ae0bc597629abcd88f844d863da45901a (diff) | |
parent | 793780daa7665f7f86994235c4263fcb63554eb8 (diff) |
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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: |