From cb99202095f93652ae733751be6e83eb49173d2e Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 1 Dec 2009 07:27:31 +0000 Subject: [PATCH] Fixed error handling (removal of config.php after error). --- install/save.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install/save.php b/install/save.php index b11263a3..801c2a1a 100644 --- a/install/save.php +++ b/install/save.php @@ -53,6 +53,7 @@ function display_error($message) // Specify that session support is enabled $_SESSION['session_support'] = 'Enabled'; // Redirect to first page again and exit + @unlink($path_to_root."/config.php"); // remove just created config file header('Location: index.php?sessions_checked=true'); exit(); } @@ -295,9 +296,7 @@ if ($admin_password != $admin_repassword) } // End admin user details code -if (!file_exists($path_to_root . "/config.php")) { - copy($path_to_root. "/config.default.php", $path_to_root. "/config.php"); -} +copy($path_to_root. "/config.default.php", $path_to_root. "/config.php"); include_once($path_to_root . "/includes/db/connect_db.inc"); include_once($path_to_root . "/admin/db/maintenance_db.inc"); -- 2.30.2