From eeccbc262845c4f7c2f779fc1c52058a8c1bb1cf Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Tue, 8 Feb 2022 13:02:21 +0800 Subject: [PATCH] * conceal custom config. --- extension/lite/custom/ext/config/lite.php | 7 +++++++ extension/lite/custom/ext/lang/zh-cn/lite.php | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 extension/lite/custom/ext/config/lite.php diff --git a/extension/lite/custom/ext/config/lite.php b/extension/lite/custom/ext/config/lite.php new file mode 100644 index 0000000000..27a39f044f --- /dev/null +++ b/extension/lite/custom/ext/config/lite.php @@ -0,0 +1,7 @@ +custom->requiredModules = array(); +$config->custom->requiredModules[10] = 'project'; +$config->custom->requiredModules[20] = 'story'; +$config->custom->requiredModules[35] = 'execution'; +$config->custom->requiredModules[40] = 'task'; +$config->custom->requiredModules[85] = 'user'; diff --git a/extension/lite/custom/ext/lang/zh-cn/lite.php b/extension/lite/custom/ext/lang/zh-cn/lite.php index 52611dc529..631a33413a 100644 --- a/extension/lite/custom/ext/lang/zh-cn/lite.php +++ b/extension/lite/custom/ext/lang/zh-cn/lite.php @@ -12,5 +12,4 @@ $lang->custom->object['todo'] = '待办'; $lang->custom->object['user'] = '用户'; $lang->custom->object['block'] = '区块'; -if($this->config->edition != 'open') $lang->custom->system = array('required', 'score', 'feedback'); if($this->config->edition != 'open') $lang->custom->system = array('required', 'score');