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

@@ -54,8 +54,8 @@
* NOTE: If you change these, also change the error_reporting() code below
*/
#define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development');
if (isset($_SERVER['CI_ENV'])) {
define('ENVIRONMENT', $_SERVER['CI_ENV']);
if (isset($_ENV['CI_ENV'])) {
define('ENVIRONMENT', $_ENV['CI_ENV']);
} else if (file_exists('.debug')) {
define('ENVIRONMENT', 'development');
} else if (file_exists('.maintenance')) {