- bugfix on output buffer handling in isCached() method

This commit is contained in:
uwe.tews@googlemail.com
2010-10-13 23:22:57 +00:00
parent cf42bcd242
commit 147c5d0631
2 changed files with 4 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
- bugfix use caching properties of template instead of smarty object when compiling child {block}
- bugfix {*block}...{/block*} did throw an exception in template inheritance
- bugfix on template inheritance using nested eval or string resource in {extends} tags
- bugfix on output buffer handling in isCached() method
===== RC4 =====

View File

@@ -76,11 +76,12 @@ class Smarty_Internal_CacheResource_File {
*/
public function getCachedContents($_template, $no_render = false)
{
ob_start();
if (!$no_render) {
ob_start();
}
$_smarty_tpl = $_template;
include $_template->getCachedFilepath();
if ($no_render) {
ob_clean();
return null;
} else {
return ob_get_clean();