Supress errors when language files are missing in dashboard widgets.
| | |
| | | $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()) {
|
| | |
| | | $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);
|
| | |
|
| | | /*
|