Skip to content

Commit f194c60

Browse files
author
fantu
committed
fix
1 parent 6730018 commit f194c60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/lib/classes/tform.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)