mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
디버그 사용자일 경우 발생하는 템플릿 XML 오류 문제 수정
This commit is contained in:
parent
e506975439
commit
eacf1c43f0
1 changed files with 1 additions and 1 deletions
|
|
@ -365,7 +365,7 @@ class TemplateHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert template path comment tag.
|
// Insert template path comment tag.
|
||||||
if(config('debug.enabled') && Rhymix\Framework\Debug::isEnabledForCurrentUser() && !starts_with('<!DOCTYPE', $contents))
|
if(Rhymix\Framework\Debug::isEnabledForCurrentUser() && Context::getResponseMethod() === 'HTML' && !starts_with('<!DOCTYPE', $contents) && !starts_with('<?xml', $contents))
|
||||||
{
|
{
|
||||||
$sign = PHP_EOL . '<!-- Template %s : ' . $this->web_path . $this->filename . ' -->' . PHP_EOL;
|
$sign = PHP_EOL . '<!-- Template %s : ' . $this->web_path . $this->filename . ' -->' . PHP_EOL;
|
||||||
$contents = sprintf($sign, 'start') . $contents . sprintf($sign, 'end');
|
$contents = sprintf($sign, 'start') . $contents . sprintf($sign, 'end');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue