summaryrefslogtreecommitdiff
path: root/app/check_setup.php
diff options
context:
space:
mode:
authorImbasaur <yarrusg@gmail.com>2016-04-29 15:20:48 +0200
committerImbasaur <yarrusg@gmail.com>2016-04-29 15:20:48 +0200
commit7459bc1c40af72441ccdaff944ef2dc9465ba9bf (patch)
treefea088cdda93079aee9e719a1bbe8464358efbb0 /app/check_setup.php
parent99f275e5bb033cca33eee87b0e914645730f13d1 (diff)
parent81a25cbe6328eab7c4de0befc64186610ecc7f49 (diff)
Merge pull request #2 from fguillot/master
merge
Diffstat (limited to 'app/check_setup.php')
-rw-r--r--app/check_setup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/check_setup.php b/app/check_setup.php
index af830de7..d962a6f8 100644
--- a/app/check_setup.php
+++ b/app/check_setup.php
@@ -15,8 +15,8 @@ if (version_compare(PHP_VERSION, '5.4.0', '<')) {
}
// Check data folder if sqlite
-if (DB_DRIVER === 'sqlite' && ! is_writable('data')) {
- throw new Exception('The directory "data" must be writeable by your web server user');
+if (DB_DRIVER === 'sqlite' && ! is_writable(dirname(DB_FILENAME))) {
+ throw new Exception('The directory "'.dirname(DB_FILENAME).'" must be writeable by your web server user');
}
// Check PDO extensions