From ef811b269145890a18e1eb2cbfb2438877c3dd75 Mon Sep 17 00:00:00 2001 From: joyqi Date: Thu, 21 Nov 2013 14:32:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Widget/Menu.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/var/Widget/Menu.php b/var/Widget/Menu.php index c360eadd..d024d497 100644 --- a/var/Widget/Menu.php +++ b/var/Widget/Menu.php @@ -207,10 +207,11 @@ class Widget_Menu extends Typecho_Widget } } - if(!empty($currentUrlParts['query']) && substr($urlParts['path'],-13) == 'extending.php'){ - if( $urlParts['query'] != $currentUrlParts['query']){ - $validate = false; - } + if ($validate + && basename($urlParts['path']) == 'extending.php' + && !empty($currentUrlParams['panel']) && !empty($urlParams['panel']) + && $urlParams['panel'] != $currentUrlParams['panel']){ + $validate = false; } if ($hidden && $validate) {