aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2014-08-21 16:42:22 +0200
committerThomas Citharel <tcit@tcit.fr>2014-08-21 16:42:22 +0200
commit4362417495b116b6bd4c3011187968f68f09430f (patch)
tree2900cccca6602a22f17e01188c3a9193f1334e47 /inc
parent45e60cb52a132917463bb45d1f1b41fc671ca659 (diff)
parenta9bbe11169a89195aeb72ecddd1e000276b5bf72 (diff)
downloadwallabag-4362417495b116b6bd4c3011187968f68f09430f.tar.gz
wallabag-4362417495b116b6bd4c3011187968f68f09430f.tar.zst
wallabag-4362417495b116b6bd4c3011187968f68f09430f.zip
Merge branch 'dev' of https://github.com/wallabag/wallabag into dev
Diffstat (limited to 'inc')
-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;