|
|
@ -303,17 +303,13 @@ class rcube_template extends rcube_html_page
|
|
|
|
$path = "$skin_path/templates/$name.html";
|
|
|
|
$path = "$skin_path/templates/$name.html";
|
|
|
|
|
|
|
|
|
|
|
|
// read template file
|
|
|
|
// read template file
|
|
|
|
if (($templ = file_get_contents($path)) === false) {
|
|
|
|
if (($templ = @file_get_contents($path)) === false) {
|
|
|
|
ob_start();
|
|
|
|
|
|
|
|
file_get_contents($path);
|
|
|
|
|
|
|
|
$message = ob_get_contents();
|
|
|
|
|
|
|
|
ob_end_clean();
|
|
|
|
|
|
|
|
raise_error(array(
|
|
|
|
raise_error(array(
|
|
|
|
'code' => 501,
|
|
|
|
'code' => 501,
|
|
|
|
'type' => 'php',
|
|
|
|
'type' => 'php',
|
|
|
|
'line' => __LINE__,
|
|
|
|
'line' => __LINE__,
|
|
|
|
'file' => __FILE__,
|
|
|
|
'file' => __FILE__,
|
|
|
|
'message' => 'Error loading template for '.$name.': '.$message
|
|
|
|
'message' => 'Error loading template for '.$name
|
|
|
|
), true, true);
|
|
|
|
), true, true);
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|