mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-30 07:42:11 +09:00
issue 2370 fixed install script.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12104 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
69807cf0db
commit
2312f34813
2 changed files with 6 additions and 26 deletions
|
|
@ -93,32 +93,13 @@
|
|||
|
||||
$designInfo->module = new stdClass();
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
foreach($skinTypes as $key => $dir)
|
||||
{
|
||||
$skinType = $key == 'skin' ? 'P' : 'M';
|
||||
foreach($moduleList as $moduleName)
|
||||
{
|
||||
$moduleSkinPath = ModuleHandler::getModulePath($moduleName).$dir;
|
||||
$skinName = 'default';
|
||||
|
||||
$defualtSkinPath = $moduleSkinPath.$skinName;
|
||||
|
||||
if(!is_dir($defualtSkinPath))
|
||||
{
|
||||
$skins = FileHandler::readDir($moduleSkinPath);
|
||||
if(count($skins) > 0)
|
||||
{
|
||||
$skinName = $skins[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
$skinName = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if($skinName)
|
||||
{
|
||||
$designInfo->module->{$moduleName}->{$key} = $skinName;
|
||||
}
|
||||
$designInfo->module->{$moduleName}->{$key} = $oModuleModel->getModuleDefaultSkin($moduleName, $skinType, 0, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -166,9 +147,8 @@
|
|||
$output = $oDocumentController->insertDocument($obj);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$mdocument_srl = $output->get('document_srl');
|
||||
// save PageWidget
|
||||
$oModuleModel = &getModel('module');
|
||||
$mdocument_srl = $output->get('document_srl');
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
|
||||
$module_info->document_srl = $document_srl;
|
||||
$module_info->mdocument_srl = $mdocument_srl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue