Remove the set for db_path variable which replaced the variable in config.php.

This commit is contained in:
Mark Crane
2013-03-26 18:35:19 +00:00
parent 307d82bb1f
commit 0fc7641f61
+2 -2
View File
@@ -113,7 +113,6 @@ if ($db_type == "sqlite") {
$db_name_short = $db_name; $db_name_short = $db_name;
} }
$db_path = $document_root.PROJECT_PATH.'/secure';
$db_path = realpath($db_path); $db_path = realpath($db_path);
if (file_exists($db_path.'/'.$db_name)) { if (file_exists($db_path.'/'.$db_name)) {
//echo "database file exists<br>"; //echo "database file exists<br>";
@@ -122,7 +121,8 @@ if ($db_type == "sqlite") {
if (is_writable($db_path.'/'.$db_name)) { if (is_writable($db_path.'/'.$db_name)) {
//use database in current location //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."; echo "The database ".$db_path."/".$db_name." does not exist or is not writable.";
exit; exit;
} }