增加APP_HOOK常量 用于是否启用 hook

This commit is contained in:
thinkphp
2015-12-10 21:56:20 +08:00
parent 8972df8a98
commit 65be8f094c
4 changed files with 18 additions and 22 deletions

View File

@@ -38,7 +38,7 @@ if (isset($mode['config'])) {
}
// 加载模式行为定义
if (isset($mode['tags'])) {
if (APP_HOOK && isset($mode['tags'])) {
Hook::import(is_array($mode['tags']) ? $mode['tags'] : include $mode['tags']);
}