mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
模板里发生异常时清空之前的输出
This commit is contained in:
@@ -144,6 +144,10 @@ class Handle
|
||||
// 不显示详细错误信息
|
||||
$data['message'] = Config::get('error_message');
|
||||
}
|
||||
//保留一层
|
||||
while (ob_get_level() > 1) {
|
||||
ob_end_clean();
|
||||
}
|
||||
ob_start();
|
||||
ob_implicit_flush(0);
|
||||
extract($data);
|
||||
|
||||
Reference in New Issue
Block a user