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:
@@ -111,9 +111,9 @@ class Core
|
||||
|
||||
$template_path = 'config/database.php';
|
||||
$output_path = $_SERVER['DOCUMENT_ROOT'] . '/' . $data['directory'] . '/application/config/database.php';
|
||||
if (isset($_SERVER['CI_ENV'])) {
|
||||
$template_path = $_SERVER['CI_ENV'].'/database.php';
|
||||
$output_path = $_SERVER['DOCUMENT_ROOT'] . '/' . $data['directory'] . '/application/'.$_SERVER['CI_ENV'].'/database.php';
|
||||
if (isset($_ENV['CI_ENV'])) {
|
||||
$template_path = $_ENV['CI_ENV'].'/database.php';
|
||||
$output_path = $_SERVER['DOCUMENT_ROOT'] . '/' . $data['directory'] . '/application/'.$_ENV['CI_ENV'].'/database.php';
|
||||
}
|
||||
|
||||
// Open the file
|
||||
@@ -153,9 +153,9 @@ class Core
|
||||
|
||||
$template_path = 'config/config.php';
|
||||
$output_path = $_SERVER['DOCUMENT_ROOT'] . '/' . $data['directory'] . '/application/config/config.php';
|
||||
if (isset($_SERVER['CI_ENV'])) {
|
||||
$template_path = $_SERVER['CI_ENV'].'/config.php';
|
||||
$output_path = $_SERVER['DOCUMENT_ROOT'] . '/' . $data['directory'] . '/application/'.$_SERVER['CI_ENV'].'/config.php';
|
||||
if (isset($_ENV['CI_ENV'])) {
|
||||
$template_path = $_ENV['CI_ENV'].'/config.php';
|
||||
$output_path = $_SERVER['DOCUMENT_ROOT'] . '/' . $data['directory'] . '/application/'.$_ENV['CI_ENV'].'/config.php';
|
||||
}
|
||||
|
||||
// Open the file
|
||||
|
||||
Reference in New Issue
Block a user