오타 수정및 주석문 추가

This commit is contained in:
YJSoft 2014-05-11 19:57:12 +09:00
parent 5c9bf55b97
commit 9ee99ea7b9

View file

@ -11,7 +11,7 @@
*/
class TemplateHandler
{
e
private $compiled_path = 'files/cache/template_compiled/'; ///< path of compiled caches files
private $path = NULL; ///< target directory
private $filename = NULL; ///< target filename
@ -365,10 +365,12 @@ e
ob_start();
if(substr($buff, 0, 7) == 'file://')
{
//load cache file from disk
$eval_str = FileHandler::readFile(substr($buff, 7));
$eval_str_buffed = "?>" . $eval_str;
@eval($eval_str_buffed);
$error_info = error_get_last();
//parse error
if ($error_info['type'] == 4)
{
throw new Exception("Error Parsing Template - {$error_info['message']} in template file {$this->file}");
@ -379,6 +381,7 @@ e
$eval_str = "?>" . $buff;
@eval($eval_str);
$error_info = error_get_last();
//parse error
if ($error_info['type'] == 4)
{
throw new Exception("Error Parsing Template - {$error_info['message']} in template file {$this->file}");