Think\Error类的appShutdown方法改进

This commit is contained in:
thinkphp
2013-04-01 13:25:56 +08:00
parent 05fc4d7497
commit a248444605
3 changed files with 3 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ class Cache {
self::$handler = new $class($options);
return self::$handler;
}else{
Error::halt('_CACHE_TYPE_INVALID_:'.$type);
E('_CACHE_TYPE_INVALID_:'.$type);
}
}

View File

@@ -64,6 +64,7 @@ class Error {
// 记录日志
Log::save();
if ($e = error_get_last()) {
ob_end_clean();
self::appError($e['type'],$e['message'],$e['file'],$e['line']);
}
}

View File

@@ -235,7 +235,7 @@ class Loader {
self::$_instance[$identify] = $o;
}
else
Error::halt(Lang::get('_CLASS_NOT_EXIST_').':'.$class);
E(Lang::get('_CLASS_NOT_EXIST_').':'.$class);
}
return self::$_instance[$identify];
}