aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/Database.class.php
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-09-27 17:54:13 +0200
committertcit <tcit@tcit.fr>2014-09-27 17:54:13 +0200
commit04a7674bdd20f2f24b32de69c086ecffdf20ceb4 (patch)
treebcc26634c68a8689ad511513c316058647e90789 /inc/poche/Database.class.php
parent657245dcbdbca323621952d2b6f9e991dd94fa03 (diff)
parenta15108e65b12ceaf50821783bcaa1ee3fee10d13 (diff)
downloadwallabag-04a7674bdd20f2f24b32de69c086ecffdf20ceb4.tar.gz
wallabag-04a7674bdd20f2f24b32de69c086ecffdf20ceb4.tar.zst
wallabag-04a7674bdd20f2f24b32de69c086ecffdf20ceb4.zip
merge refactor and dev
Diffstat (limited to 'inc/poche/Database.class.php')
-rwxr-xr-xinc/poche/Database.class.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php
index 2c80b64b..dfd7ae34 100755
--- a/inc/poche/Database.class.php
+++ b/inc/poche/Database.class.php
@@ -23,6 +23,10 @@ class Database {
23 { 23 {
24 switch (STORAGE) { 24 switch (STORAGE) {
25 case 'sqlite': 25 case 'sqlite':
26 // Check if /db is writeable
27 if ( !is_writable(STORAGE_SQLITE) || !is_writable(dirname(STORAGE_SQLITE))) {
28 die('An error occured: "db" directory must be writeable for your web server user!');
29 }
26 $db_path = 'sqlite:' . STORAGE_SQLITE; 30 $db_path = 'sqlite:' . STORAGE_SQLITE;
27 $this->handle = new PDO($db_path); 31 $this->handle = new PDO($db_path);
28 break; 32 break;