From 6c15854448d0977d54d9e8698b6ee7e4af8ec476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 9 Aug 2013 11:47:37 +0200 Subject: [PATCH] Closed #111 : test of install folder moved before --- inc/poche/Poche.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index 78747e321..dc8dbbbbc 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php @@ -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();