@@ 160-181 (lines=22) @@ | ||
157 | foreach($layoutInfo->menu as $menu_id => $menu) |
|
158 | { |
|
159 | // set default menu set(included home menu) |
|
160 | if(!$menu->menu_srl || $menu->menu_srl == -1) |
|
161 | { |
|
162 | $oMenuAdminController = getAdminController('menu'); |
|
163 | $homeMenuCacheFile = $oMenuAdminController->getHomeMenuCacheFile(); |
|
164 | ||
165 | if(file_exists($homeMenuCacheFile)) |
|
166 | { |
|
167 | include($homeMenuCacheFile); |
|
168 | } |
|
169 | ||
170 | if(!$menu->menu_srl) |
|
171 | { |
|
172 | $menu->xml_file = str_replace('.xml.php', $homeMenuSrl . '.xml.php', $menu->xml_file); |
|
173 | $menu->php_file = str_replace('.php', $homeMenuSrl . '.php', $menu->php_file); |
|
174 | $layoutInfo->menu->{$menu_id}->menu_srl = $homeMenuSrl; |
|
175 | } |
|
176 | else |
|
177 | { |
|
178 | $menu->xml_file = str_replace($menu->menu_srl, $homeMenuSrl, $menu->xml_file); |
|
179 | $menu->php_file = str_replace($menu->menu_srl, $homeMenuSrl, $menu->php_file); |
|
180 | } |
|
181 | } |
|
182 | ||
183 | $menu->php_file = FileHandler::getRealPath($menu->php_file); |
|
184 | if(FileHandler::exists($menu->php_file)) |
@@ 1089-1110 (lines=22) @@ | ||
1086 | foreach($layout_info->menu as $menu_id => $menu) |
|
1087 | { |
|
1088 | // set default menu set(included home menu) |
|
1089 | if(!$menu->menu_srl || $menu->menu_srl == -1) |
|
1090 | { |
|
1091 | $oMenuAdminController = getAdminController('menu'); |
|
1092 | $homeMenuCacheFile = $oMenuAdminController->getHomeMenuCacheFile(); |
|
1093 | ||
1094 | if(FileHandler::exists($homeMenuCacheFile)) |
|
1095 | { |
|
1096 | include($homeMenuCacheFile); |
|
1097 | } |
|
1098 | ||
1099 | if(!$menu->menu_srl) |
|
1100 | { |
|
1101 | $menu->xml_file = str_replace('.xml.php', $homeMenuSrl . '.xml.php', $menu->xml_file); |
|
1102 | $menu->php_file = str_replace('.php', $homeMenuSrl . '.php', $menu->php_file); |
|
1103 | $layout_info->menu->{$menu_id}->menu_srl = $homeMenuSrl; |
|
1104 | } |
|
1105 | else |
|
1106 | { |
|
1107 | $menu->xml_file = str_replace($menu->menu_srl, $homeMenuSrl, $menu->xml_file); |
|
1108 | $menu->php_file = str_replace($menu->menu_srl, $homeMenuSrl, $menu->php_file); |
|
1109 | } |
|
1110 | } |
|
1111 | ||
1112 | $php_file = FileHandler::exists($menu->php_file); |
|
1113 | if($php_file) |