diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-05 11:08:48 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-05 11:08:48 +0000 |
| commit | 57e60c45efe8d3caad0bab75f3207118443fe372 (patch) | |
| tree | 7709f822415fc78714a94ac94acb50434bdfa3d9 /roundcubemail/program/include/rcube_plugin.php | |
| parent | 7f9b7fa6d8a51e64e10ada30200bef58fdd2e370 (diff) | |
- Don't disable include() errors, so now broken translation of a plugin will print error to the log
git-svn-id: https://svn.roundcube.net/trunk@5168 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_plugin.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_plugin.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/roundcubemail/program/include/rcube_plugin.php b/roundcubemail/program/include/rcube_plugin.php index cce04cd3d..49bec043c 100644 --- a/roundcubemail/program/include/rcube_plugin.php +++ b/roundcubemail/program/include/rcube_plugin.php @@ -147,8 +147,11 @@ abstract class rcube_plugin 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(); |
