Skip to content

Commit 6fdb548

Browse files
author
liu21st@gmail.com
committed
简化halt的代码
git-svn-id: http://thinkphp.googlecode.com/svn/trunk@2988 539fd3ec-2725-0410-b7ab-251e373a8e33
1 parent 684801c commit 6fdb548

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ThinkPHP/Common/functions.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ function halt($error) {
4545
} else {
4646
$e = $error;
4747
}
48-
// 包含异常页面模板
49-
include C('TMPL_EXCEPTION_FILE');
5048
} else {
5149
//否则定向到错误页面
5250
$error_page = C('ERROR_PAGE');
@@ -57,10 +55,10 @@ function halt($error) {
5755
$e['message'] = is_array($error) ? $error['message'] : $error;
5856
else
5957
$e['message'] = C('ERROR_MESSAGE');
60-
// 包含异常页面模板
61-
include C('TMPL_EXCEPTION_FILE');
6258
}
6359
}
60+
// 包含异常页面模板
61+
include C('TMPL_EXCEPTION_FILE');
6462
exit;
6563
}
6664

0 commit comments

Comments
 (0)