]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Closed #111 : test of install folder moved before
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Fri, 9 Aug 2013 09:47:37 +0000 (11:47 +0200)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Fri, 9 Aug 2013 09:47:37 +0000 (11:47 +0200)
inc/poche/Poche.class.php

index 78747e32192515701817203663a826844ef02f12..dc8dbbbbc72194b8d6cfc1eb1d523c8dc7382675 100644 (file)
@@ -18,6 +18,11 @@ class Poche
 
     function __construct()
     {
+        if (file_exists('./install') && !DEBUG_POCHE) {
+            Tools::logm('folder /install exists');
+            die('To install your poche with sqlite, copy /install/poche.sqlite in /db and delete the folder /install. you have to delete the /install folder before using poche.');
+        }
+
         $this->store = new Database();
         $this->init();
         $this->messages = new Messages();
@@ -31,11 +36,6 @@ class Poche
 
     private function init() 
     {
-        if (file_exists('./install') && !DEBUG_POCHE) {
-            Tools::logm('folder /install exists');
-            die('the folder /install exists, you have to delete it before using poche.');
-        }
-
         Tools::initPhp();
         Session::init();