修复菜单错误

This commit is contained in:
joyqi 2013-10-08 09:23:55 +08:00
parent 17f3d0444d
commit 58f7062677

View File

@ -159,6 +159,10 @@ class Widget_Menu extends Typecho_Widget
parse_str($currentUrlParts['query'], $currentUrlParams);
}
if ('/' == $currentUrlParts['path'][strlen($currentUrlParts['path']) - 1]) {
$currentUrlParts['path'] .= 'index.php';
}
foreach ($extendingParentMenu as $key => $val) {
$parentNodes[10 + $key] = $val;
}