mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
오타 수정및 주석문 추가
This commit is contained in:
parent
5c9bf55b97
commit
9ee99ea7b9
1 changed files with 4 additions and 1 deletions
|
|
@ -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}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue