mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix on output buffer handling in isCached() method
This commit is contained in:
@@ -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 =====
|
||||
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user