From 4b739dabd739d05d03fde3a6b0261c014a1619e8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 13 Mar 2013 17:04:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BA=94=E7=94=A8=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Think/App.php | 4 ++-- base.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Think/App.php b/Think/App.php index 144efd9a..e5c2ea68 100644 --- a/Think/App.php +++ b/Think/App.php @@ -220,8 +220,8 @@ class App { if(is_file(MODULE_PATH.'config'.EXT)) { $config = Config::set(include MODULE_PATH.'config'.EXT); } - if(Config::get('app_debug')) { - // 读取调试模式的应用状态 + if(Config::has('app_status')) { + // 读取应用状态配置文件 $status = Config::get('app_status'); // 加载对应的项目配置文件 if(is_file(MODULE_PATH.$status.EXT)) diff --git a/base.php b/base.php index 4ac3aa50..bd5f208a 100644 --- a/base.php +++ b/base.php @@ -27,7 +27,6 @@ defined('CACHE_PATH') or define('CACHE_PATH', RUNTIME_PATH.'Temp/'); defined('VENDOR_PATH') or define('VENDOR_PATH', THINK_PATH.'Vendor/'); defined('EXT') or define('EXT', '.php'); defined('APP_DEBUG') or define('APP_DEBUG',false); // 是否调试模式 -defined('RUNTIME_FILE') or define('RUNTIME_FILE', RUNTIME_PATH.'~runtime.php'); // 为了方便导入第三方类库 设置Vendor目录到include_path set_include_path(get_include_path() . PATH_SEPARATOR . VENDOR_PATH);