From 085cc7010a1d5fc7c9d2c6e56fe0ce10d339455c Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 29 Mar 2007 05:57:26 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@763 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/message/message.view.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/modules/message/message.view.php b/modules/message/message.view.php index bd7b6b760..2ed77d32a 100644 --- a/modules/message/message.view.php +++ b/modules/message/message.view.php @@ -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'); }