Fix #1035 in message module

This commit is contained in:
Kijin Sung 2018-06-25 23:07:34 +09:00
parent bacca5d025
commit 62895c945a
2 changed files with 18 additions and 3 deletions

View file

@ -22,8 +22,23 @@ class messageMobile extends messageView
if(!$config->mskin) $config->mskin = 'default'; if(!$config->mskin) $config->mskin = 'default';
// Set the template path // Set the template path
$template_path = sprintf('%sm.skins/%s', $this->module_path, $config->mskin); if($config->mskin === '/USE_RESPONSIVE/')
{
$template_path = sprintf('%sskins/%s/', $this->module_path, $config->skin);
if(!is_dir($template_path) || !$config->skin)
{
$template_path = sprintf('%sskins/%s/', $this->module_path, 'default');
}
}
else
{
$template_path = sprintf('%sm.skins/%s/', $this->module_path, $config->mskin);
if(!is_dir($template_path) || !$config->mskin)
{
$template_path = sprintf('%sm.skins/%s/', $this->module_path, 'default');
}
}
// Get the member configuration // Get the member configuration
$oModuleModel = getModel('module'); $oModuleModel = getModel('module');
$member_config = $oModuleModel->getModuleConfig('member'); $member_config = $oModuleModel->getModuleConfig('member');

View file

@ -110,7 +110,7 @@ class pageMobile extends pageView
} }
Context::set('oDocument', $oDocument); Context::set('oDocument', $oDocument);
if($this->module_info->mskin === '/USE_RESPsONSIVE/') if($this->module_info->mskin === '/USE_RESPONSIVE/')
{ {
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin); $template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
if(!is_dir($template_path)||!$this->module_info->skin) if(!is_dir($template_path)||!$this->module_info->skin)