ENV is taken instead of SERVER for Environment

This commit is contained in:
Joerg
2024-04-14 18:07:20 +02:00
parent 2c2787e5bb
commit 3d80d770a4
3 changed files with 10 additions and 10 deletions

View File

@@ -24,8 +24,8 @@ if (file_exists('config_unattended.php')) {
// Config Paths
$db_config_path = '../application/config/';
if (isset($_SERVER['CI_ENV'])) {
$db_config_path ='../application/'.$_SERVER['CI_ENV'].'/';
if (isset($_ENV['CI_ENV'])) {
$db_config_path ='../application/'.$_ENV['CI_ENV'].'/';
}
$db_file_path = $db_config_path . "database.php";