From 57e60c45efe8d3caad0bab75f3207118443fe372 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 5 Sep 2011 11:08:48 +0000 Subject: - 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 --- roundcubemail/program/include/rcube_plugin.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'roundcubemail/program/include') 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(); -- cgit v1.2.3