mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
레이아웃 메뉴 설정 항목의 초기화를 반복문 밖에서 하도록 고침
This commit is contained in:
parent
a6e52f9f4f
commit
bc4abef975
1 changed files with 1 additions and 1 deletions
|
|
@ -723,11 +723,11 @@ class layoutModel extends layout
|
|||
|
||||
$menu_count = count($menus);
|
||||
$buff[] = sprintf('$layout_info->menu_count = %d;', $menu_count);
|
||||
$buff[] = '$layout_info->menu = new stdClass();';
|
||||
for($i=0;$i<$menu_count;$i++)
|
||||
{
|
||||
$name = $menus[$i]->attrs->name;
|
||||
if($menus[$i]->attrs->default == "true") $buff[] = sprintf('$layout_info->default_menu = %s;', var_export($name, true));
|
||||
$buff[] = '$layout_info->menu = new stdClass();';
|
||||
$buff[] = sprintf('$layout_info->menu->%s = new stdClass();', $name);
|
||||
$buff[] = sprintf('$layout_info->menu->%s->name = %s;', $name, var_export($name, true));
|
||||
$buff[] = sprintf('$layout_info->menu->%s->title = %s;', $name, var_export($menus[$i]->title->body, true));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue