mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
ENV is taken instead of SERVER for Environment
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user