更新核心文件

This commit is contained in:
thinkphp
2015-03-26 16:15:35 +08:00
parent 40db699dc4
commit aa123aa8a2
11 changed files with 221 additions and 178 deletions

View File

@@ -48,11 +48,13 @@ class Hook {
if(isset(self::$tags[$tag])) {
foreach (self::$tags[$tag] as $name) {
Config::get('app_debug') && Debug::remark('behavior_start','time');
if(APP_DEBUG){
Debug::remark('behavior_start','time');
}
$result = self::exec($name, $tag,$params);
if(Config::get('app_debug')){
if(APP_DEBUG){
Debug::remark('behavior_end','time');
Log::record('Run '.$name.' [ RunTime:'.Debug::getUseTime('behavior_start','behavior_end').'s ]','INFO');
}