]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/Wallabag/Database.php
new folders
[github/wallabag/wallabag.git] / src / Wallabag / Wallabag / Database.php
similarity index 99%
rename from inc/poche/Database.class.php
rename to src/Wallabag/Wallabag/Database.php
index f6ba47089e8b1cb5b5a87d08787cf0b30397aefc..afda69de56e2cd0ffb87b8f3c647c30915b12050 100755 (executable)
@@ -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);