mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fix backward incompatible behavior when is_skin_fix or is_mskin_fix is set
This commit is contained in:
parent
18b5d66605
commit
7b16ee31c3
1 changed files with 2 additions and 1 deletions
|
|
@ -735,7 +735,8 @@ class ModuleObject extends BaseObject
|
|||
// Set module skin
|
||||
if(isset($this->module_info->skin) && $this->module_info->module === $this->module && strpos($this->act, 'Admin') === false)
|
||||
{
|
||||
if(!$this->getTemplatePath())
|
||||
$use_default_skin = $this->module_info->{$is_mobile ? 'is_mskin_fix' : 'is_skin_fix'} === 'N';
|
||||
if(!$this->getTemplatePath() || $use_default_skin)
|
||||
{
|
||||
$this->setLayoutAndTemplatePaths($is_mobile ? 'M' : 'P', $this->module_info);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue