X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FWallabag%2FDatabase.php;fp=inc%2Fpoche%2FDatabase.class.php;h=afda69de56e2cd0ffb87b8f3c647c30915b12050;hb=6ad93dff69d7c2beb2196e73f641e6484fccbeb7;hp=f6ba47089e8b1cb5b5a87d08787cf0b30397aefc;hpb=c78c1a3f08815aab99752026ccdf1dcf63cf43c1;p=github%2Fwallabag%2Fwallabag.git diff --git a/inc/poche/Database.class.php b/src/Wallabag/Wallabag/Database.php similarity index 99% rename from inc/poche/Database.class.php rename to src/Wallabag/Wallabag/Database.php index f6ba4708..afda69de 100755 --- a/inc/poche/Database.class.php +++ b/src/Wallabag/Wallabag/Database.php @@ -8,6 +8,8 @@ * @license http://opensource.org/licenses/MIT see COPYING file */ +namespace Wallabag\Wallabag; + class Database { var $handle; @@ -25,7 +27,7 @@ class Database { 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!'); + die('An error occured: ' . STORAGE_SQLITE . ' directory must be writeable for your web server user!'); } $db_path = 'sqlite:' . STORAGE_SQLITE; $this->handle = new PDO($db_path);