File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ function loadFormDef($file,$module = '') {
130130 $ this ->module = $ module ;
131131 $ wb = array ();
132132
133+ $ lng_file = ISPC_WEB_PATH .'/lang/lib/lang/ ' .$ _SESSION ['s ' ]['language ' ].'_tform.lng ' ;
134+ if (!file_exists ($ lng_file )) $ lng_file = ISPC_WEB_PATH .'/lang/lib/lang/en ' .'_tform.lng ' ;
135+ include ($ lng_file );
133136 if ($ module == '' ) {
134137 if (is_file ("lib/lang/ " .$ _SESSION ["s " ]["language " ]."_ " .$ this ->formDef ["name " ].".lng " )) {
135138 include_once ("lib/lang/ " .$ _SESSION ["s " ]["language " ]."_ " .$ this ->formDef ["name " ].".lng " );
@@ -139,9 +142,6 @@ function loadFormDef($file,$module = '') {
139142 include_once ("../ $ module/lib/lang/ " .$ _SESSION ["s " ]["language " ]."_ " .$ this ->formDef ["name " ].".lng " );
140143 }
141144 }
142- $ lng_file = ISPC_WEB_PATH .'/lang/lib/lang/ ' .$ _SESSION ['s ' ]['language ' ].'_tform.lng ' ;
143- if (!file_exists ($ lng_file )) $ lng_file = ISPC_WEB_PATH .'/lang/lib/lang/en_ ' .'_tform.lng ' ;
144- include ($ lng_file );
145145 $ this ->wordbook = $ wb ;
146146
147147 return true ;
You can’t perform that action at this time.
0 commit comments