issue 160 admin setup bug fix.

when menu add, can't read module list.


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9152 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-09-15 06:28:48 +00:00
parent 78f9868d0a
commit 3301e40cf5

View file

@ -477,13 +477,9 @@
$menuList = array();
foreach($installed_module_list AS $key=>$value)
{
$cache_file = sprintf("./files/cache/module_info/%s.%s.php", $value->module, $currentLang);
if(is_readable($cache_file))
{
include $cache_file;
if($info->menu) $menuList[$value->module] = $info->menu;
unset($info->menu);
}
$info = $oModuleModel->getModuleActionXml($value->module);
if($info->menu) $menuList[$value->module] = $info->menu;
unset($info->menu);
}
}
$this->add('menuList', $menuList);