File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,14 @@ private function checkLanguage() {
63
63
}
64
64
// 定义当前语言
65
65
define ('LANG_SET ' ,strtolower ($ langSet ));
66
- // 读取项目公共语言包
67
- if (is_file (LANG_PATH .LANG_SET .'/common.php ' ))
68
- L (include LANG_PATH .LANG_SET .'/common.php ' );
66
+
69
67
$ group = '' ;
70
- $ lang_path = C ('APP_GROUP_MODE ' )==1 ? BASE_LIB_PATH .'Lang/ ' .LANG_SET .'/ ' : LANG_PATH .LANG_SET .'/ ' ;
71
- // 读取当前分组公共语言包
72
- if (defined ('GROUP_NAME ' )){
68
+ $ lang_path = (defined ('GROUP_NAME ' ) && C ('APP_GROUP_MODE ' )==1 ) ? BASE_LIB_PATH .'Lang/ ' .LANG_SET .'/ ' : LANG_PATH .LANG_SET .'/ ' ;
69
+ // 读取项目或者独立分组公共语言包
70
+ if (is_file ($ lang_path .'common.php ' ))
71
+ L (include $ lang_path .'common.php ' );
72
+ // 普通分组公共语言包
73
+ if (defined ('GROUP_NAME ' ) && C ('APP_GROUP_MODE ' )==0 ){
73
74
if (is_file ($ lang_path .GROUP_NAME .'.php ' ))
74
75
L (include $ lang_path .GROUP_NAME .'.php ' );
75
76
$ group = GROUP_NAME .C ('TMPL_FILE_DEPR ' );
You can’t perform that action at this time.
0 commit comments