tbrehm
2010-07-07 15d426cce3d75f9f7a3d8d972884327b687e7606
Supress errors when language files are missing in dashboard widgets.
2 files modified
6 ■■■■■ changed files
interface/web/dashboard/dashlets/limits.php 3 ●●●● patch | view | raw | blame | history
interface/web/dashboard/dashlets/modules.php 3 ●●●● patch | view | raw | blame | history
interface/web/dashboard/dashlets/limits.php
@@ -106,8 +106,9 @@
        $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
@@ -11,8 +11,9 @@
        $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);
        
        /*