모듈 기본 스킨을 셋팅하는 코드 정리

init()에서 setTemplatePath(...)하는 모듈에서 사이트 기본 스킨을 사용할 경우 '/USE_DEFAULT/' 그대로 유지되어 템플릿 경로 오류가 발생하는 문제 수정
불필요한 코드 제거
This commit is contained in:
conory 2019-01-11 11:13:48 +09:00
parent 7cabb04cac
commit 0a97a0de53
2 changed files with 29 additions and 44 deletions

View file

@ -19,9 +19,6 @@ class pageView extends page
*/
function init()
{
// Get a template path (page in the administrative template tpl putting together)
$this->setTemplatePath($this->module_path.'tpl');
switch($this->module_info->page_type)
{
case 'WIDGET' :
@ -61,7 +58,8 @@ class pageView extends page
Context::set('module_info', $this->module_info);
Context::set('page_content', $page_content);
$this->setTemplatePath($this->module_path . 'tpl');
$this->setTemplateFile('content');
}