mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 05:42:13 +09:00
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:
parent
3f9d33a2f2
commit
f1b1396178
2 changed files with 9 additions and 5 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue