mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +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
|
|
@ -3,11 +3,11 @@
|
||||||
<grants />
|
<grants />
|
||||||
<permissions />
|
<permissions />
|
||||||
<actions>
|
<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="dispMenuAdminInsert" type="view" standalone="true" />
|
||||||
<action name="dispMenuAdminManagement" type="view" standalone="true" />
|
<action name="dispMenuAdminManagement" type="view" standalone="true" />
|
||||||
<action name="dispMenuAdminMidList" 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="getMenuAdminTplInfo" type="model" standalone="true" />
|
||||||
<action name="getMenuAdminItemInfo" type="model" standalone="true" />
|
<action name="getMenuAdminItemInfo" type="model" standalone="true" />
|
||||||
|
|
|
||||||
|
|
@ -122,9 +122,13 @@
|
||||||
{
|
{
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
$moduleInfo = $oModuleModel->getModuleInfoByMid($menuItem->url);
|
$moduleInfo = $oModuleModel->getModuleInfoByMid($menuItem->url);
|
||||||
if($moduleInfo->mid == $menuItem->url) {
|
if(!$moduleInfo) $menuItem->moduleType = 'url';
|
||||||
$menuItem->moduleType = $moduleInfo->module;
|
else
|
||||||
$menuItem->pageType = $moduleInfo->page_type;
|
{
|
||||||
|
if($moduleInfo->mid == $menuItem->url) {
|
||||||
|
$menuItem->moduleType = $moduleInfo->module;
|
||||||
|
$menuItem->pageType = $moduleInfo->page_type;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else $menuItem->moduleType = 'url';
|
else $menuItem->moduleType = 'url';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue