mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Merge branch 'dev' of https://github.com/wallabag/wallabag into dev
This commit is contained in:
commit
4362417495
3 changed files with 5 additions and 6 deletions
|
@ -23,6 +23,10 @@ class Database {
|
|||
{
|
||||
switch (STORAGE) {
|
||||
case 'sqlite':
|
||||
// Check if /db is writeable
|
||||
if ( !is_writable(STORAGE_SQLITE) || !is_writable(dirname(STORAGE_SQLITE))) {
|
||||
die('An error occured: "db" directory must be writeable for your web server user!');
|
||||
}
|
||||
$db_path = 'sqlite:' . STORAGE_SQLITE;
|
||||
$this->handle = new PDO($db_path);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue