Changeset 5168 in subversion


Ignore:
Timestamp:
Sep 5, 2011 7:08:48 AM (21 months ago)
Author:
alec
Message:
  • Don't disable include() errors, so now broken translation of a plugin will print error to the log
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_plugin.php

    r4870 r5168  
    148148 
    149149    foreach (array('en_US', $lang) as $lng) { 
    150       @include($locdir . $lng . '.inc'); 
    151       $texts = (array)$labels + (array)$messages + (array)$texts; 
     150      $fpath = $locdir . $lng . '.inc'; 
     151      if (is_file($fpath) && is_readable($fpath)) { 
     152        include($fpath); 
     153        $texts = (array)$labels + (array)$messages + (array)$texts; 
     154      } 
    152155    } 
    153156 
Note: See TracChangeset for help on using the changeset viewer.