git-svn-id: http://xe-core.googlecode.com/svn/trunk@763 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-29 05:57:26 +00:00
parent 044e53c88c
commit 085cc7010a

View file

@ -11,22 +11,23 @@
* @brief 초기화
**/
function init() {
// 설정 정보를 받아옴 (module model 객체를 이용)
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('rss');
if(!$config->skin) $config->skin = 'default';
Context::set('skin',$config->skin);
// 템플릿 경로를 지정
$template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
$this->setTemplatePath($this->module_path.'tpl');
}
/**
* @brief 메세지 출력
**/
function dispContent() {
// 설정 정보를 받아옴 (module model 객체를 이용)
$oModuleModel = &getModel('module');
$config = $oModuleModel->getModuleConfig('rss');
if(!$config->skin) $config->skin = 'default';
// 템플릿 경로를 지정
$template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
Context::set('system_message', $this->getMessage());
$this->setTemplatePath($template_path);
$this->setTemplateFile('system_message');
}