配置参数读取的时候取消环境变量判断 需要读取环境变量的时候使用

This commit is contained in:
thinkphp
2016-08-31 19:11:31 +08:00
parent a7707e1843
commit 51452be436
2 changed files with 4 additions and 22 deletions

View File

@@ -12,6 +12,7 @@
namespace think;
use think\Config;
use think\Env;
use think\Exception;
use think\exception\HttpException;
use think\exception\HttpResponseException;
@@ -371,7 +372,7 @@ class App
self::$suffix = $config['class_suffix'];
// 应用调试模式
self::$debug = Config::get('app_debug');
self::$debug = Env::get('app_debug', Config::get('app_debug'));
if (!self::$debug) {
ini_set('display_errors', 'Off');
} elseif (!IS_CLI) {