mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
issue 92 add module_config set
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8654 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0bb416558e
commit
4b09d1118a
1 changed files with 3 additions and 3 deletions
|
|
@ -19,12 +19,13 @@
|
|||
function dispMessage() {
|
||||
// Get configurations (using module model object)
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('message');
|
||||
$this->module_config = $config = $oModuleModel->getModuleConfig('message', $this->module_info->site_srl);
|
||||
if(!$config->skin) $config->skin = 'default';
|
||||
// Template path
|
||||
$template_path = sprintf('%sskins/%s', $this->module_path, $config->skin);
|
||||
$this->setTemplatePath($template_path);
|
||||
|
||||
// Get the member configuration
|
||||
$oModuleModel = &getModel('module');
|
||||
$member_config = $oModuleModel->getModuleConfig('member');
|
||||
Context::set('member_config', $member_config);
|
||||
// Set a flag to check if the https connection is made when using SSL and create https url
|
||||
|
|
@ -36,7 +37,6 @@
|
|||
|
||||
Context::set('system_message', nl2br($this->getMessage()));
|
||||
|
||||
$this->setTemplatePath($template_path);
|
||||
$this->setTemplateFile('system_message');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue