summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-rwxr-xr-xprogram/include/rcube_template.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index 3fdd81762..9f94194c4 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -303,17 +303,13 @@ class rcube_template extends rcube_html_page
$path = "$skin_path/templates/$name.html";
// read template file
- if (($templ = file_get_contents($path)) === false) {
- ob_start();
- file_get_contents($path);
- $message = ob_get_contents();
- ob_end_clean();
+ if (($templ = @file_get_contents($path)) === false) {
raise_error(array(
'code' => 501,
'type' => 'php',
'line' => __LINE__,
'file' => __FILE__,
- 'message' => 'Error loading template for '.$name.': '.$message
+ 'message' => 'Error loading template for '.$name
), true, true);
return false;
}