mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 13:52:24 +09:00
issue 2863 when menu's text is empty, recreate menu cache file
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12649 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a529970101
commit
22188a6077
2 changed files with 23 additions and 4 deletions
|
|
@ -115,13 +115,13 @@ class adminAdminView extends admin
|
|||
$oAdminAdminModel = &getAdminModel('admin');
|
||||
$lang->menu_gnb_sub = $oAdminAdminModel->getAdminMenuLang();
|
||||
|
||||
$menuPhpFile = $oAdminAdminModel->checkAdminMenu();
|
||||
if(!$menuPhpFile)
|
||||
$result = $oAdminAdminModel->checkAdminMenu();
|
||||
if(!$result->php_file)
|
||||
{
|
||||
header('Location: '.getNotEncodedUrl('', 'module','admin'));
|
||||
Context::close();
|
||||
}
|
||||
include $menuPhpFile;
|
||||
include $result->php_file;
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$moduleActionInfo = $oModuleModel->getModuleActionXml($module);
|
||||
|
|
@ -138,8 +138,16 @@ class adminAdminView extends admin
|
|||
}
|
||||
|
||||
$parentSrl = 0;
|
||||
$oMenuAdminConroller = &getAdminController('menu');
|
||||
foreach((array)$menu->list as $parentKey=>$parentMenu)
|
||||
{
|
||||
if(!$parentMenu['text'])
|
||||
{
|
||||
$oMenuAdminConroller->makeXmlFile($result->menu_srl);
|
||||
header('Location: '.getNotEncodedUrl('', 'module','admin'));
|
||||
break;
|
||||
}
|
||||
|
||||
if(!is_array($parentMenu['list']) || !count($parentMenu['list'])) continue;
|
||||
if($parentMenu['href'] == '#' && count($parentMenu['list']))
|
||||
{
|
||||
|
|
@ -149,6 +157,13 @@ class adminAdminView extends admin
|
|||
|
||||
foreach($parentMenu['list'] as $childKey=>$childMenu)
|
||||
{
|
||||
if(!$childMenu['text'])
|
||||
{
|
||||
$oMenuAdminConroller->makeXmlFile($result->menu_srl);
|
||||
header('Location: '.getNotEncodedUrl('', 'module','admin'));
|
||||
break;
|
||||
}
|
||||
|
||||
if($subMenuTitle == $childMenu['text'])
|
||||
{
|
||||
$parentSrl = $childMenu['parent_srl'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue