Skip to content

Commit 15d426c

Browse files
committed
Supress errors when language files are missing in dashboard widgets.
1 parent fd9ef2e commit 15d426c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

interface/web/dashboard/dashlets/limits.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ function show() {
106106
$tpl = new tpl;
107107
$tpl->newTemplate("dashlets/templates/limits.htm");
108108

109+
$wb = array();
109110
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dashlet_limits.lng';
110-
include($lng_file);
111+
if(is_file($lng_file)) include($lng_file);
111112
$tpl->setVar($wb);
112113

113114
if($app->auth->is_admin()) {

interface/web/dashboard/dashlets/modules.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ function show() {
1111
$tpl = new tpl;
1212
$tpl->newTemplate("dashlets/templates/modules.htm");
1313

14+
$wb = array();
1415
$lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dashlet_modules.lng';
15-
include($lng_file);
16+
if(is_file($lng_file)) include($lng_file);
1617
$tpl->setVar($wb);
1718

1819
/*

0 commit comments

Comments
 (0)