File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,15 @@ private function checkLanguage() {
67
67
if (is_file (LANG_PATH .LANG_SET .'/common.php ' ))
68
68
L (include LANG_PATH .LANG_SET .'/common.php ' );
69
69
$ group = '' ;
70
+ $ lang_path = C ('APP_GROUP_MODE ' )==1 ? BASE_LIB_PATH .'Lang/ ' .LANG_SET .'/ ' : LANG_PATH .LANG_SET .'/ ' ;
70
71
// 读取当前分组公共语言包
71
72
if (defined ('GROUP_NAME ' )){
72
- if (is_file (LANG_PATH . LANG_SET . ' / ' .GROUP_NAME .'.php ' ))
73
- L (include LANG_PATH . LANG_SET . ' / ' .GROUP_NAME .'.php ' );
73
+ if (is_file ($ lang_path .GROUP_NAME .'.php ' ))
74
+ L (include $ lang_path .GROUP_NAME .'.php ' );
74
75
$ group = GROUP_NAME .C ('TMPL_FILE_DEPR ' );
75
76
}
76
77
// 读取当前模块语言包
77
- if (is_file (LANG_PATH . LANG_SET . ' / ' .$ group .strtolower (MODULE_NAME ).'.php ' ))
78
- L (include LANG_PATH . LANG_SET . ' / ' .$ group .strtolower (MODULE_NAME ).'.php ' );
78
+ if (is_file ($ lang_path .$ group .strtolower (MODULE_NAME ).'.php ' ))
79
+ L (include $ lang_path .$ group .strtolower (MODULE_NAME ).'.php ' );
79
80
}
80
81
}
You can’t perform that action at this time.
0 commit comments