mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01: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,8 +22,23 @@ 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');
|
||||
$member_config = $oModuleModel->getModuleConfig('member');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue