From 2501bb337e75c41f97570f25775e20131faf2f2a Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 3 Jul 2014 22:11:25 +0200 Subject: [PATCH] Preparation #2 for SQLite https://github.com/marienfressinaud/FreshRSS/issues/100 --- .../{EntryDAO_SQLite.php => EntryDAOSQLite.php} | 2 +- app/Models/Factory.php | 2 +- app/SQL/install.sql.sqlite.php | 2 +- app/install.php | 16 ++++++++++++---- 4 files changed, 15 insertions(+), 7 deletions(-) rename app/Models/{EntryDAO_SQLite.php => EntryDAOSQLite.php} (96%) diff --git a/app/Models/EntryDAO_SQLite.php b/app/Models/EntryDAOSQLite.php similarity index 96% rename from app/Models/EntryDAO_SQLite.php rename to app/Models/EntryDAOSQLite.php index f148f3c63..45d3a3ea9 100644 --- a/app/Models/EntryDAO_SQLite.php +++ b/app/Models/EntryDAOSQLite.php @@ -1,6 +1,6 @@ PDO::ERRMODE_EXCEPTION, ); @@ -407,7 +407,7 @@ function postUpdate() { } function deleteInstall () { - $res = unlink (DATA_PATH . 'do-install.txt'); + $res = unlink (DATA_PATH . '/do-install.txt'); if ($res) { header ('Location: index.php'); } @@ -665,7 +665,7 @@ function checkBD () { $str = 'mysql:host=' . $_SESSION['bd_host'] . ';dbname=' . $_SESSION['bd_base']; break; case 'sqlite': - $str = 'sqlite:' . DATA_PATH . '/' . $_SESSION['bd_base'] . '.sqlite'; + $str = 'sqlite:' . DATA_PATH . '/' . $_SESSION['default_user'] . '.sqlite'; $driver_options = array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, ); @@ -921,7 +921,7 @@ function printStep3 () {
-
+
@@ -968,6 +969,13 @@ function printStep3 () {
+
+