issue 370 when menu url is relative path,

must showed url type in sitemap


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9534 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-10-10 09:14:19 +00:00
parent 3f9d33a2f2
commit f1b1396178
2 changed files with 9 additions and 5 deletions

View file

@ -3,11 +3,11 @@
<grants />
<permissions />
<actions>
<action name="dispMenuAdminContent" type="view" admin_index="true" standalone="true" />
<action name="dispMenuAdminContent" type="view" standalone="true" />
<action name="dispMenuAdminInsert" type="view" standalone="true" />
<action name="dispMenuAdminManagement" type="view" standalone="true" />
<action name="dispMenuAdminMidList" type="view" standalone="true" />
<action name="dispMenuAdminSiteMap" type="view" standalone="true" menu_name="siteMap" menu_index="true" />
<action name="dispMenuAdminSiteMap" type="view" standalone="true" admin_index="true" menu_name="siteMap" menu_index="true" />
<action name="getMenuAdminTplInfo" type="model" standalone="true" />
<action name="getMenuAdminItemInfo" type="model" standalone="true" />

View file

@ -122,11 +122,15 @@
{
$oModuleModel = &getModel('module');
$moduleInfo = $oModuleModel->getModuleInfoByMid($menuItem->url);
if(!$moduleInfo) $menuItem->moduleType = 'url';
else
{
if($moduleInfo->mid == $menuItem->url) {
$menuItem->moduleType = $moduleInfo->module;
$menuItem->pageType = $moduleInfo->page_type;
}
}
}
else $menuItem->moduleType = 'url';
// get groups