From 58f7062677d0fd6a29b7090c48b491050078a2dc Mon Sep 17 00:00:00 2001 From: joyqi Date: Tue, 8 Oct 2013 09:23:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Widget/Menu.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/Widget/Menu.php b/var/Widget/Menu.php index d3d89344..1e400529 100644 --- a/var/Widget/Menu.php +++ b/var/Widget/Menu.php @@ -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; }