thomascube
2008-09-06 7f22f297acb9de8a9b1bc0d22d1e9a07cb6177e6
One error message is enough if template was not found

1 files modified
8 ■■■■ changed files
program/include/rcube_template.php 8 ●●●● patch | view | raw | blame | history
program/include/rcube_template.php
@@ -303,17 +303,13 @@
        $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;
        }