mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Display relative path in "Template not found" error message
This commit is contained in:
parent
a5ed417480
commit
7bba7732d7
1 changed files with 2 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ class TemplateHandler
|
||||||
{
|
{
|
||||||
$tpl_path = rtrim(str_replace('\\', '/', $tpl_path), '/') . '/';
|
$tpl_path = rtrim(str_replace('\\', '/', $tpl_path), '/') . '/';
|
||||||
$error_message = vsprintf('Template not found: %s%s%s', array(
|
$error_message = vsprintf('Template not found: %s%s%s', array(
|
||||||
$tpl_path,
|
starts_with(\RX_BASEDIR, $tpl_path) ? substr($tpl_path, strlen(\RX_BASEDIR)) : $tpl_path,
|
||||||
preg_replace('/\.html$/i', '', $tpl_filename) . '.html',
|
preg_replace('/\.html$/i', '', $tpl_filename) . '.html',
|
||||||
$tpl_file ? " ($tpl_file)" : '',
|
$tpl_file ? " ($tpl_file)" : '',
|
||||||
));
|
));
|
||||||
|
|
@ -236,7 +236,7 @@ class TemplateHandler
|
||||||
{
|
{
|
||||||
$tpl_path = rtrim(str_replace('\\', '/', $tpl_path), '/') . '/';
|
$tpl_path = rtrim(str_replace('\\', '/', $tpl_path), '/') . '/';
|
||||||
$error_message = vsprintf('Template not found: %s%s', array(
|
$error_message = vsprintf('Template not found: %s%s', array(
|
||||||
$tpl_path,
|
starts_with(\RX_BASEDIR, $tpl_path) ? substr($tpl_path, strlen(\RX_BASEDIR)) : $tpl_path,
|
||||||
preg_replace('/\.html$/i', '', $tpl_filename) . '.html',
|
preg_replace('/\.html$/i', '', $tpl_filename) . '.html',
|
||||||
));
|
));
|
||||||
trigger_error($error_message, \E_USER_WARNING);
|
trigger_error($error_message, \E_USER_WARNING);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue