From fd081159f1783918d81e355e25e262ccc5249913 Mon Sep 17 00:00:00 2001 From: Andy Staudacher Date: Thu, 8 Jan 2009 06:57:04 +0000 Subject: Windows fixes: Use mkdir($path, 0777, true) instead of the unportable system("mkdir -p $path") --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') 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 { -- cgit v1.2.3