mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
034a5c0288
commit
f70ce644ce
1410 changed files with 7188 additions and 53541 deletions
|
|
@ -42,10 +42,26 @@ class menuMobile extends moduleObject
|
|||
$menu_srl = Context::get('menu_srl');
|
||||
$oAdminModel =& getAdminModel('menu');
|
||||
$menu_info = $oAdminModel->getMenu($menu_srl);
|
||||
if(file_exists($menu_info->php_file)) @include($menu_info->php_file);
|
||||
foreach($menu->list as $menu_item)
|
||||
|
||||
if(!$menu_srl)
|
||||
{
|
||||
$this->straightenMenu($menu_item, 0);
|
||||
$oMenuAdminController = getAdminController('menu');
|
||||
$homeMenuCacheFile = $oMenuAdminController->getHomeMenuCacheFile();
|
||||
|
||||
if(file_exists($homeMenuCacheFile))
|
||||
{
|
||||
@include($homeMenuCacheFile);
|
||||
}
|
||||
$menu_info->php_file = './files/cache/menu/'.$homeMenuSrl.'.php';
|
||||
}
|
||||
|
||||
if(file_exists($menu_info->php_file)) @include($menu_info->php_file);
|
||||
if(is_array($menu->list))
|
||||
{
|
||||
foreach($menu->list as $menu_item)
|
||||
{
|
||||
$this->straightenMenu($menu_item, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Context::set('menu', $this->result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue