From 9021138b7029cd83014a4b4376c767818cee65ee Mon Sep 17 00:00:00 2001 From: wangyuting2 <851424971@qq.com> Date: Fri, 5 Aug 2022 09:01:31 +0800 Subject: [PATCH] * Adjust featurebar sort to config. --- module/common/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index b9a4def805..51197a9750 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -3385,19 +3385,19 @@ EOD; */ public static function sortFeatureMenu($module = '', $method = '') { - global $lang, $app; + global $lang, $config, $app; $module = $module ? $module : $app->rawModule; $method = $method ? $method : $app->rawMethod; /* It will be sorted according to the workflow in the future */ - if(!empty($lang->featureBarSort[$module][$method])) + if(!empty($config->featureBarSort[$module][$method])) { $featureBar = array(); if(empty($lang->$module->featureBar[$method])) return false; foreach($lang->$module->featureBar[$method] as $key => $label) { - foreach($lang->featureBarSort[$module][$method] as $currentKey => $afterKey) + foreach($config->featureBarSort[$module][$method] as $currentKey => $afterKey) { if($key == $currentKey) continue; $featureBar[$method][$key] = $label;