mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
修复菜单错误
This commit is contained in:
parent
17f3d0444d
commit
58f7062677
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user