mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-10 04:03:01 +09:00
issue 2311 copy additional setting when module is copied.
And skin vars also. git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11116 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8332ce69e3
commit
8d0778b601
16 changed files with 215 additions and 26 deletions
|
|
@ -114,7 +114,24 @@
|
|||
}
|
||||
}
|
||||
|
||||
$tmpModuleSkinVars = $oModuleModel->getModuleSkinVars($module_srl);
|
||||
$tmpModuleMobileSkinVars = $oModuleModel->getModuleMobileSkinVars($module_srl);
|
||||
|
||||
if($tmpModuleSkinVars)
|
||||
{
|
||||
foreach($tmpModuleSkinVars AS $key=>$value)
|
||||
{
|
||||
$moduleSkinVars->{$key} = $value->value;
|
||||
}
|
||||
}
|
||||
|
||||
if($tmpModuleMobileSkinVars)
|
||||
{
|
||||
foreach($tmpModuleMobileSkinVars AS $key=>$value)
|
||||
{
|
||||
$moduleMobileSkinVars->{$key} = $value->value;
|
||||
}
|
||||
}
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
|
@ -149,6 +166,9 @@
|
|||
if(count($grant)) $oModuleController->insertModuleGrants($module_srl, $grant);
|
||||
if ($extra_vars) $oModuleController->insertModuleExtraVars($module_srl, $extra_vars);
|
||||
|
||||
if($moduleSkinVars) $oModuleController->insertModuleSkinVars($module_srl, $moduleSkinVars);
|
||||
if($moduleMobileSkinVars) $oModuleController->insertModuleMobileSkinVars($module_srl, $moduleMobileSkinVars);
|
||||
|
||||
array_push($triggerObj->moduleSrlList, $module_srl);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue