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