mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +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,7 +22,22 @@ class messageMobile extends messageView
|
|||
if(!$config->mskin) $config->mskin = 'default';
|
||||
|
||||
// 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
|
||||
$oModuleModel = getModel('module');
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ class pageMobile extends pageView
|
|||
}
|
||||
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);
|
||||
if(!is_dir($template_path)||!$this->module_info->skin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue