From 0fc7641f6107c509e8cb46441b188fdf2810f330 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 26 Mar 2013 18:35:19 +0000 Subject: [PATCH] Remove the set for db_path variable which replaced the variable in config.php. --- includes/lib_pdo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/lib_pdo.php b/includes/lib_pdo.php index 37a11bd517..db825ec11a 100644 --- a/includes/lib_pdo.php +++ b/includes/lib_pdo.php @@ -113,7 +113,6 @@ if ($db_type == "sqlite") { $db_name_short = $db_name; } - $db_path = $document_root.PROJECT_PATH.'/secure'; $db_path = realpath($db_path); if (file_exists($db_path.'/'.$db_name)) { //echo "database file exists
"; @@ -122,7 +121,8 @@ if ($db_type == "sqlite") { if (is_writable($db_path.'/'.$db_name)) { //use database in current location } - else { //not writable + else { + //not writable echo "The database ".$db_path."/".$db_name." does not exist or is not writable."; exit; }