die('The directory "cache" must be writeable by your web server user');
}
-// Check if /db is writeable
-if (! is_writable('db') && STORAGE === 'sqlite') {
- die('The directory "db" must be writeable by your web server user');
-}
-
// install folder still present, need to install wallabag
if (is_dir('install')) {
require('install/index.php');
{
switch (STORAGE) {
case 'sqlite':
+ // Check if /db is writeable
+ if ( !is_writable(STORAGE_SQLITE) || !is_writable(dirname(STORAGE_SQLITE))) {\r
+ 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;
define ('POCHE', '1.8.0');
require 'check_essentials.php';
-require_once 'inc/poche/global.inc.php';
require 'check_setup.php';
+require_once 'inc/poche/global.inc.php';
// Start session
Session::$sessionName = 'wallabag';