mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
913ccf4a3c 보완
This commit is contained in:
parent
913ccf4a3c
commit
28dfc44a86
2 changed files with 4 additions and 4 deletions
|
|
@ -252,10 +252,10 @@ class HTMLDisplayHandler
|
||||||
$oModuleController = getController('module');
|
$oModuleController = getController('module');
|
||||||
$oModuleController->replaceDefinedLangCode($output);
|
$oModuleController->replaceDefinedLangCode($output);
|
||||||
|
|
||||||
// remove comment tag
|
// remove template path comment tag
|
||||||
if(Context::get('logged_info')->is_admin !== 'Y')
|
if(!Rhymix\Framework\Debug::isEnabledForCurrentUser())
|
||||||
{
|
{
|
||||||
$output = preg_replace('/\n?<!--[^\[].*?-->/s', '', $output);
|
$output = preg_replace('/\n?<!--\s?Template.*?-->\n?/', '', $output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -359,7 +359,7 @@ class TemplateHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
// insert template path comment tag
|
// insert template path comment tag
|
||||||
if(config('debug.enabled') && Context::get('logged_info')->is_admin === 'Y')
|
if(config('debug.enabled') && Rhymix\Framework\Debug::isEnabledForCurrentUser())
|
||||||
{
|
{
|
||||||
$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