mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Only modify module_info->layout_srl (or mlayout_srl) when it has a positive value
This commit is contained in:
parent
fb85d62f2f
commit
05f330cabe
1 changed files with 8 additions and 2 deletions
|
|
@ -611,8 +611,11 @@ class ModuleObject extends BaseObject
|
|||
$layout_info = LayoutModel::getInstance()->getLayout($layout_srl);
|
||||
if($layout_info)
|
||||
{
|
||||
$this->module_info->layout_srl = $layout_srl;
|
||||
$this->setLayoutPath($layout_info->path);
|
||||
if ($config->layout_srl > 0)
|
||||
{
|
||||
$this->module_info->layout_srl = $layout_srl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -637,8 +640,11 @@ class ModuleObject extends BaseObject
|
|||
$layout_info = LayoutModel::getInstance()->getLayout($layout_srl);
|
||||
if($layout_info)
|
||||
{
|
||||
$this->module_info->mlayout_srl = $layout_srl;
|
||||
$this->setLayoutPath($layout_info->path);
|
||||
if ($config->mlayout_srl > 0)
|
||||
{
|
||||
$this->module_info->mlayout_srl = $layout_srl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue