Remove the set for db_path variable which replaced the variable in config.php.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user