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

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