From 31784fa5fc20caf6863d4fb07b411ea58af27cfe Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 17 Dec 2025 14:41:27 +0800 Subject: [PATCH] * [refac] refactor featurebar widget. --- lib/zin/wg/featurebar/v1.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/zin/wg/featurebar/v1.php b/lib/zin/wg/featurebar/v1.php index 559c6915c6..dd166705d5 100644 --- a/lib/zin/wg/featurebar/v1.php +++ b/lib/zin/wg/featurebar/v1.php @@ -59,8 +59,9 @@ class featureBar extends wg data('activeFeature', $current); - if(empty($commonLink)) $commonLink = createLink($app->rawModule, $app->rawMethod, $this->prop('linkParams')); - if(empty($searchModule)) $searchModule = data("config.{$currentModule}.search.module") ? data("config.{$currentModule}.search.module") : $currentModule; + if(empty($commonLink)) $commonLink = createLink($app->rawModule, $app->rawMethod, $this->prop('linkParams')); + if(empty($searchModule)) $searchModule = data("config.{$currentModule}.search.module"); + if(empty($searchModule)) $searchModule = $currentModule; foreach($rawItems as $rawItem) {