From 86bc1c4cceab7c52bcacee408dff15498216cfbb Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Wed, 18 Sep 2024 16:45:59 +0800 Subject: [PATCH] * [bug#55121,done,1h] If the param value is not provided, retrieve it from the top of the page. --- lib/zin/wg/featurebar/v1.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/zin/wg/featurebar/v1.php b/lib/zin/wg/featurebar/v1.php index 60ed5c96db..4464676f4b 100644 --- a/lib/zin/wg/featurebar/v1.php +++ b/lib/zin/wg/featurebar/v1.php @@ -50,7 +50,7 @@ class featureBar extends wg $loadID = $this->prop('loadID'); $load = $this->prop('load'); $tab = $this->prop('app'); - $param = $this->prop('param'); + $param = $this->prop('param') ? $this->prop('param') : data('param'); $searchModule = $this->prop('searchModule'); $commonLink = $this->prop('link'); $itemLink = $this->prop('itemLink'); @@ -104,7 +104,7 @@ class featureBar extends wg $subItems[] = $subItem; - if($key === $current) + if($key === $current || ($current == 'bysearch' && $key == $param)) { $isActive = true; $activeText = $text;