[Smarttemplate-cvscommit] smarttemplate class.smarttemplate.php, 1.9, 1.10
Brought to you by:
codeworxtech
|
From: EndelWar <end...@us...> - 2006-08-24 16:14:32
|
Update of /cvsroot/smarttemplate/smarttemplate In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv13374 Modified Files: class.smarttemplate.php Log Message: Return error if it cannot open cache file for writing Index: class.smarttemplate.php =================================================================== RCS file: /cvsroot/smarttemplate/smarttemplate/class.smarttemplate.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** class.smarttemplate.php 23 Aug 2006 19:45:49 -0000 1.9 --- class.smarttemplate.php 24 Aug 2006 16:14:28 -0000 1.10 *************** *** 389,395 **** if ($hd = @fopen($this->cache_filename, 'w')) { ! fputs($hd, $output); fclose($hd); } return $output; } --- 389,399 ---- if ($hd = @fopen($this->cache_filename, 'w')) { ! fwrite($hd, $output); fclose($hd); } + else + { + $output = 'SmartTemplate Error: failed to open cache file "' . $this->cache_filename . '"'; + } return $output; } |