From c4a2f2942afe44f0a1bd019fc869ecb0aa0532e6 Mon Sep 17 00:00:00 2001 From: Stephan Kasdorf Date: Wed, 11 Apr 2018 14:37:45 +0200 Subject: [PATCH] Correction for running on php -S --- core/c/config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/c/config.php b/core/c/config.php index 47cd54a..490cfd1 100644 --- a/core/c/config.php +++ b/core/c/config.php @@ -44,7 +44,9 @@ class Config extends Settings } else { - self::$_env = self::CLI_SYSTEM; + defined('APPLICATION_ENV') + || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'development')); + self::$_env = APPLICATION_ENV; } }