mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 09:52:17 +09:00
issue 2625 add about setting of default layout/skin.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11898 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
afd6f9b5ae
commit
1c3e69f91f
15 changed files with 176 additions and 80 deletions
|
|
@ -95,6 +95,8 @@
|
|||
$output = executeQueryArray('module.getNotLinkedModuleGroupSiteSrl');
|
||||
if($output->toBool() && $output->data && count($output->data) > 0) return true;
|
||||
|
||||
// check fix mskin
|
||||
if(!$oDB->isColumnExists("modules", "is_mskin_fix")) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -382,6 +384,22 @@
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
if(!$oDB->isColumnExists("modules", "is_mskin_fix"))
|
||||
{
|
||||
$oDB->addColumn('modules', 'is_mskin_fix', 'char', 1, 'N');
|
||||
$output = executeQueryArray('module.getAllMobileSkinSetModule');
|
||||
if ($output->toBool() && $output->data){
|
||||
$module_srls = array();
|
||||
foreach($output->data as $val){
|
||||
$module_srls[] = $val->module_srl;
|
||||
}
|
||||
unset($args);
|
||||
$args->module_srls = implode(',', $module_srls);
|
||||
$args->is_mskin_fix = 'Y';
|
||||
$output = executeQuery('module.updateMobileSkinFixModules', $args);
|
||||
}
|
||||
}
|
||||
return new Object(0, 'success_updated');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue