mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
Merge branch 'develop' of https://github.com/xpressengine/xe-core into develop
This commit is contained in:
commit
ed67b5d983
1 changed files with 24 additions and 2 deletions
|
|
@ -365,12 +365,34 @@ class TemplateHandler
|
||||||
ob_start();
|
ob_start();
|
||||||
if(substr($buff, 0, 7) == 'file://')
|
if(substr($buff, 0, 7) == 'file://')
|
||||||
{
|
{
|
||||||
include(substr($buff, 7));
|
if(__DEBUG__)
|
||||||
|
{
|
||||||
|
//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}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
include(substr($buff, 7));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$eval_str = "?>" . $buff;
|
$eval_str = "?>" . $buff;
|
||||||
eval($eval_str);
|
@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}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ob_get_clean();
|
return ob_get_clean();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue