取消APP_HOOK常量 默认开启插件机制

This commit is contained in:
thinkphp
2016-05-24 22:08:34 +08:00
parent b848abdf3b
commit 188e64abf6
9 changed files with 17 additions and 19 deletions

View File

@@ -117,7 +117,7 @@ class View
// 获取并清空缓存
$content = ob_get_clean();
// 内容过滤标签
APP_HOOK && Hook::listen('view_filter', $content);
Hook::listen('view_filter', $content);
// 允许用户自定义模板的字符串替换
$replace = array_merge($this->replace, $replace);
if (!empty($replace)) {