mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
디버그 기능 사용시 템플릿 경로를 표시하는 주석 태그 추가
관리자일 경우에만 표시 위젯 캐시 등 사용시 템플릿 주석이 노출될 가능성이 있으므로 HTMLDisplayHandler->prepareToPrint()에서 주석 제거 처리
This commit is contained in:
parent
afc0f26d6c
commit
913ccf4a3c
2 changed files with 17 additions and 3 deletions
|
|
@ -201,10 +201,10 @@ class HTMLDisplayHandler
|
|||
$output = preg_replace($pattern, '/?$1=', $output);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// prevent the 2nd request due to url(none) of the background-image
|
||||
$output = preg_replace('/url\((["\']?)none(["\']?)\)/is', 'none', $output);
|
||||
|
||||
|
||||
if(is_array(Context::get('INPUT_ERROR')))
|
||||
{
|
||||
$INPUT_ERROR = Context::get('INPUT_ERROR');
|
||||
|
|
@ -247,10 +247,16 @@ class HTMLDisplayHandler
|
|||
$this->_loadDesktopJSCSS();
|
||||
}
|
||||
$output = $oTemplate->compile('./common/tpl', 'common_layout');
|
||||
|
||||
|
||||
// replace the user-defined-language
|
||||
$oModuleController = getController('module');
|
||||
$oModuleController->replaceDefinedLangCode($output);
|
||||
|
||||
// remove comment tag
|
||||
if(Context::get('logged_info')->is_admin !== 'Y')
|
||||
{
|
||||
$output = preg_replace('/\n?<!--[^\[].*?-->/s', '', $output);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue