Changeset 1750 in subversion


Ignore:
Timestamp:
Sep 6, 2008 12:01:20 PM (5 years ago)
Author:
thomasb
Message:

One error message is enough if template was not found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_template.php

    r1735 r1750  
    304304 
    305305        // read template file 
    306         if (($templ = file_get_contents($path)) === false) { 
    307             ob_start(); 
    308             file_get_contents($path); 
    309             $message = ob_get_contents(); 
    310             ob_end_clean(); 
     306        if (($templ = @file_get_contents($path)) === false) { 
    311307            raise_error(array( 
    312308                'code' => 501, 
     
    314310                'line' => __LINE__, 
    315311                'file' => __FILE__, 
    316                 'message' => 'Error loading template for '.$name.': '.$message 
     312                'message' => 'Error loading template for '.$name 
    317313                ), true, true); 
    318314            return false; 
Note: See TracChangeset for help on using the changeset viewer.