mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Fix #1035 in message module
This commit is contained in:
parent
bacca5d025
commit
62895c945a
2 changed files with 18 additions and 3 deletions
|
|
@ -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');
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue