summaryrefslogtreecommitdiff
path: root/app/check_setup.php
diff options
context:
space:
mode:
authorDj Padzensky <djpadz@padz.net>2016-04-13 19:03:10 -0700
committerDj Padzensky <djpadz@padz.net>2016-04-13 19:03:10 -0700
commitf4e8eb176f19b31176bd3a5f9284b54e9ea6fb17 (patch)
treef03c6444d75c518267136d708341b50833a869cd /app/check_setup.php
parentab02a9a162e5a58bd92e7bb44636f683ce2ec730 (diff)
Fixing some pathing information, for cases where the KB source
tree is not in or under the webroot.
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