Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
f194c60f
Commit
f194c60f
authored
Dec 11, 2008
by
fantu
Browse files
fix
parent
67300189
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/tform.inc.php
View file @
f194c60f
...
...
@@ -130,6 +130,9 @@ class tform {
$this
->
module
=
$module
;
$wb
=
array
();
$lng_file
=
ISPC_WEB_PATH
.
'/lang/lib/lang/'
.
$_SESSION
[
's'
][
'language'
]
.
'_tform.lng'
;
if
(
!
file_exists
(
$lng_file
))
$lng_file
=
ISPC_WEB_PATH
.
'/lang/lib/lang/en'
.
'_tform.lng'
;
include
(
$lng_file
);
if
(
$module
==
''
)
{
if
(
is_file
(
"lib/lang/"
.
$_SESSION
[
"s"
][
"language"
]
.
"_"
.
$this
->
formDef
[
"name"
]
.
".lng"
))
{
include_once
(
"lib/lang/"
.
$_SESSION
[
"s"
][
"language"
]
.
"_"
.
$this
->
formDef
[
"name"
]
.
".lng"
);
...
...
@@ -139,9 +142,6 @@ class tform {
include_once
(
"../
$module
/lib/lang/"
.
$_SESSION
[
"s"
][
"language"
]
.
"_"
.
$this
->
formDef
[
"name"
]
.
".lng"
);
}
}
$lng_file
=
ISPC_WEB_PATH
.
'/lang/lib/lang/'
.
$_SESSION
[
's'
][
'language'
]
.
'_tform.lng'
;
if
(
!
file_exists
(
$lng_file
))
$lng_file
=
ISPC_WEB_PATH
.
'/lang/lib/lang/en_'
.
'_tform.lng'
;
include
(
$lng_file
);
$this
->
wordbook
=
$wb
;
return
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment