mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
when update layout info, apply layouts to menus in same menu
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12407 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ab74875e10
commit
3a91cce3af
1 changed files with 17 additions and 0 deletions
|
|
@ -117,7 +117,24 @@ class layoutAdminController extends layout
|
|||
$menu_srl = Context::get($menu_id);
|
||||
if(!$menu_srl) continue;
|
||||
|
||||
// if menu is -1, get default menu in site
|
||||
if($menu_srl == -1)
|
||||
{
|
||||
$oModuleModel = &getModel('module');
|
||||
$start_module = $oModuleModel->getSiteInfo(0, $columnList);
|
||||
$tmpArgs->url = $start_module->mid;
|
||||
$tmpArgs->site_srl = 0;
|
||||
$output = executeQuery('menu.getMenuItemByUrl', $tmpArgs);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
return new Object(-1, 'fail_to_update');
|
||||
}
|
||||
|
||||
$menu_srl = $output->data->menu_srl;
|
||||
}
|
||||
|
||||
$output = $oMenuAdminModel->getMenu($menu_srl);
|
||||
|
||||
$menu_srl_list[] = $menu_srl;
|
||||
$menu_name_list[$menu_srl] = $output->title;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue