mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
#588 템플릿 파일 오류시 오류 정보와 해당 오류가 발생한 템플릿 파일을 출력
eval에서 발생하는 오류 대신 실제 오류가 발생한 템플릿 파일을 출력함으로 디버깅시 참고 가능하게함 개선 코드(by @lansi951 ) 반영
This commit is contained in:
parent
eb3cb858ec
commit
b9a515c101
1 changed files with 6 additions and 1 deletions
|
|
@ -370,7 +370,12 @@ class TemplateHandler
|
|||
else
|
||||
{
|
||||
$eval_str = "?>" . $buff;
|
||||
eval($eval_str);
|
||||
@eval($eval_str);
|
||||
$error_info = error_get_last();
|
||||
if ($error_info['type'] == 4)
|
||||
{
|
||||
echo "<p>Error Pharsing Template - {$error_info['message']} in template file {$this->file}</p>";
|
||||
}
|
||||
}
|
||||
|
||||
return ob_get_clean();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue