mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 14:49:56 +09:00
exception을 사용하도록 수정
This commit is contained in:
parent
c9eebb4be1
commit
49c74ef5cf
1 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
*/
|
*/
|
||||||
class TemplateHandler
|
class TemplateHandler
|
||||||
{
|
{
|
||||||
|
e
|
||||||
private $compiled_path = 'files/cache/template_compiled/'; ///< path of compiled caches files
|
private $compiled_path = 'files/cache/template_compiled/'; ///< path of compiled caches files
|
||||||
private $path = NULL; ///< target directory
|
private $path = NULL; ///< target directory
|
||||||
private $filename = NULL; ///< target filename
|
private $filename = NULL; ///< target filename
|
||||||
|
|
@ -371,7 +371,7 @@ class TemplateHandler
|
||||||
$error_info = error_get_last();
|
$error_info = error_get_last();
|
||||||
if ($error_info['type'] == 4)
|
if ($error_info['type'] == 4)
|
||||||
{
|
{
|
||||||
echo "<p>Error Parsing Template - {$error_info['message']} in template file {$this->file}</p>";
|
throw new Exception("Error Parsing Template - {$error_info['message']} in template file {$this->file}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -381,7 +381,7 @@ class TemplateHandler
|
||||||
$error_info = error_get_last();
|
$error_info = error_get_last();
|
||||||
if ($error_info['type'] == 4)
|
if ($error_info['type'] == 4)
|
||||||
{
|
{
|
||||||
echo "<p>Error Parsing Template - {$error_info['message']} in template file {$this->file}</p>";
|
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