mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Fix #579 insufficient information in template error
This commit is contained in:
parent
2108d96578
commit
7e5356380f
1 changed files with 2 additions and 3 deletions
|
|
@ -123,7 +123,7 @@ class TemplateHandler
|
|||
// if target file does not exist exit
|
||||
if(!$this->file || !file_exists($this->file))
|
||||
{
|
||||
return "Err : '{$this->file}' template file does not exists.";
|
||||
return escape("Template not found: ${tpl_path}${tpl_filename}" . ($tpl_file ? " (${tpl_file})" : ''));
|
||||
}
|
||||
|
||||
// for backward compatibility
|
||||
|
|
@ -184,8 +184,7 @@ class TemplateHandler
|
|||
// if target file does not exist exit
|
||||
if(!$this->file || !file_exists($this->file))
|
||||
{
|
||||
Context::close();
|
||||
exit("Cannot find the template file: '{$this->file}'");
|
||||
return escape("Template not found: ${tpl_path}${tpl_filename}");
|
||||
}
|
||||
|
||||
return $this->parse();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue