summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-01-08 06:57:04 +0000
committerAndy Staudacher <andy.st@gmail.com>2009-01-08 06:57:04 +0000
commitfd081159f1783918d81e355e25e262ccc5249913 (patch)
tree2f86972f5f216c51d6a7153d404f72c0cc4a093f /index.php
parent2917740ba6d210ef43d4de228f8386e3b28adf62 (diff)
Windows fixes: Use mkdir($path, 0777, true) instead of the unportable system("mkdir -p $path")
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 1c98f2b3..cec905a1 100644
--- a/index.php
+++ b/index.php
@@ -49,7 +49,7 @@ define('SYSPATH', strtr(realpath('kohana') . '/', DIRECTORY_SEPARATOR, '/'));
if (PHP_SAPI == 'cli') {
array_splice($_SERVER['argv'], 1, 0, 'gallery_unit_test');
define('TEST_MODE', 1);
- @system('mkdir -p test/var/logs');
+ @mkdir('test/var/logs', 0777, true);
define('VARPATH', strtr(realpath('test/var') . '/', DIRECTORY_SEPARATOR, '/'));
@copy("var/database.php", VARPATH . "database.php");
} else {