alecpl
2011-09-05 aecadcf4a24379f314152c39a40af693cbf78249
- Don't disable include() errors, so now broken translation of a plugin will print error to the log


1 files modified
7 ■■■■ changed files
program/include/rcube_plugin.php 7 ●●●● patch | view | raw | blame | history
program/include/rcube_plugin.php
@@ -147,8 +147,11 @@
    ob_start();
    foreach (array('en_US', $lang) as $lng) {
      @include($locdir . $lng . '.inc');
      $texts = (array)$labels + (array)$messages + (array)$texts;
      $fpath = $locdir . $lng . '.inc';
      if (is_file($fpath) && is_readable($fpath)) {
        include($fpath);
        $texts = (array)$labels + (array)$messages + (array)$texts;
      }
    }
    ob_end_clean();