Commit 15d426cc authored by tbrehm's avatar tbrehm
Browse files

Supress errors when language files are missing in dashboard widgets.

parent fd9ef2e5
......@@ -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()) {
......
......@@ -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);
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment