summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php2
-rw-r--r--modules/gallery_unit_test/controllers/gallery_unit_test.php2
2 files changed, 2 insertions, 2 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 {
diff --git a/modules/gallery_unit_test/controllers/gallery_unit_test.php b/modules/gallery_unit_test/controllers/gallery_unit_test.php
index 8e5c90c3..9a653b1f 100644
--- a/modules/gallery_unit_test/controllers/gallery_unit_test.php
+++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php
@@ -72,7 +72,7 @@ class Gallery_Unit_Test_Controller extends Controller {
// Clean out the filesystem
@system("rm -rf test/var");
- @system('mkdir -p test/var/logs');
+ @mkdir('test/var/logs', 0777, true);
// Reset our loaded modules
module::load_modules();