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
9725a275
Commit
9725a275
authored
Dec 11, 2008
by
fantu
Browse files
if lang file for current language not exist load master language file
parent
baac49e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/app.inc.php
View file @
9725a275
...
...
@@ -145,7 +145,9 @@ class app {
//* loading global and module Wordbook
// TODO: this need to be made clearer somehow - pedro
@
include_once
(
ISPC_ROOT_PATH
.
'/lib/lang/'
.
$_SESSION
[
's'
][
'language'
]
.
'.lng'
);
@
include_once
(
ISPC_ROOT_PATH
.
'/web/'
.
$_SESSION
[
's'
][
'module'
][
'name'
]
.
'/lib/lang/'
.
$_SESSION
[
's'
][
'language'
]
.
'.lng'
);
$lng_file
=
ISPC_ROOT_PATH
.
'/web/'
.
$_SESSION
[
's'
][
'module'
][
'name'
]
.
'/lib/lang/'
.
$_SESSION
[
's'
][
'language'
]
.
'.lng'
;
if
(
!
file_exists
(
$lng_file
))
$lng_file
=
ISPC_ROOT_PATH
.
'/web/'
.
$_SESSION
[
's'
][
'module'
][
'name'
]
.
'/lib/lang/en.lng'
;
include_once
(
$lng_file
);
$this
->
_wb
=
$wb
;
$this
->
_language_inc
=
1
;
}
...
...
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