Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
15d426cc
Commit
15d426cc
authored
Jul 07, 2010
by
tbrehm
Browse files
Supress errors when language files are missing in dashboard widgets.
parent
fd9ef2e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/web/dashboard/dashlets/limits.php
View file @
15d426cc
...
...
@@ -106,8 +106,9 @@ class dashlet_limits {
$tpl
=
new
tpl
;
$tpl
->
newTemplate
(
"dashlets/templates/limits.htm"
);
$wb
=
array
();
$lng_file
=
'lib/lang/'
.
$_SESSION
[
's'
][
'language'
]
.
'_dashlet_limits.lng'
;
include
(
$lng_file
);
if
(
is_file
(
$lng_file
))
include
(
$lng_file
);
$tpl
->
setVar
(
$wb
);
if
(
$app
->
auth
->
is_admin
())
{
...
...
interface/web/dashboard/dashlets/modules.php
View file @
15d426cc
...
...
@@ -11,8 +11,9 @@ class dashlet_modules {
$tpl
=
new
tpl
;
$tpl
->
newTemplate
(
"dashlets/templates/modules.htm"
);
$wb
=
array
();
$lng_file
=
'lib/lang/'
.
$_SESSION
[
's'
][
'language'
]
.
'_dashlet_modules.lng'
;
include
(
$lng_file
);
if
(
is_file
(
$lng_file
))
include
(
$lng_file
);
$tpl
->
setVar
(
$wb
);
/*
...
...
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