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 () {