diff --git a/modules/message/message.view.php b/modules/message/message.view.php index e3fdb1635..0c3f56036 100644 --- a/modules/message/message.view.php +++ b/modules/message/message.view.php @@ -20,16 +20,18 @@ // Get configurations (using module model object) $oModuleModel = &getModel('module'); $this->module_config = $config = $oModuleModel->getModuleConfig('message', $this->module_info->site_srl); - if(!$config->skin) $config->skin = 'default'; - else{ - //check theme - $config_parse = explode('.', $config->skin); - if (count($config_parse) > 1){ - $template_path = sprintf('./themes/%s/modules/message/', $config_parse[0]); - }else{ - $template_path = sprintf('%sskins/%s', $this->module_path, $config->skin); - } - } + if(!$config->skin){ + $config->skin = 'default'; + $template_path = sprintf('%sskins/%s', $this->module_path, $config->skin); + }else{ + //check theme + $config_parse = explode('.', $config->skin); + if (count($config_parse) > 1){ + $template_path = sprintf('./themes/%s/modules/message/', $config_parse[0]); + }else{ + $template_path = sprintf('%sskins/%s', $this->module_path, $config->skin); + } + } // Template path $this->setTemplatePath($template_path);