mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 428, when not exist, output warning messeage on layout create
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9626 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3bbb76079e
commit
b63411093e
2 changed files with 6 additions and 3 deletions
|
|
@ -83,7 +83,9 @@
|
|||
$oLayoutModel = &getModel('layout');
|
||||
$oMenuAdminModel = &getAdminModel('menu');
|
||||
$layout_info = $oLayoutModel->getLayout($args->layout_srl);
|
||||
$menus = get_object_vars($layout_info->menu);
|
||||
if($layout_info->menu) {
|
||||
$menus = get_object_vars($layout_info->menu);
|
||||
}
|
||||
if(count($menus) ) {
|
||||
foreach($menus as $menu_id => $val) {
|
||||
$menu_srl = Context::get($menu_id);
|
||||
|
|
|
|||
|
|
@ -120,8 +120,9 @@
|
|||
</block>
|
||||
</ul>
|
||||
|
||||
<h3 class="h3">{$lang->menu}</h3>
|
||||
<ul>
|
||||
|
||||
<h3 class="h3" cond="$selected_layout->menu">{$lang->menu}</h3>
|
||||
<ul cond="$selected_layout->menu">
|
||||
<li loop="$selected_layout->menu => $menu_name, $menu_info">
|
||||
<p class="q">{$menu_info->title} ({$menu_name})</p>
|
||||
<p class="a">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue