mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34: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 use caching properties of template instead of smarty object when compiling child {block}
|
||||||
- bugfix {*block}...{/block*} did throw an exception in template inheritance
|
- 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 template inheritance using nested eval or string resource in {extends} tags
|
||||||
|
- bugfix on output buffer handling in isCached() method
|
||||||
|
|
||||||
===== RC4 =====
|
===== RC4 =====
|
||||||
|
|
||||||
|
@@ -76,11 +76,12 @@ class Smarty_Internal_CacheResource_File {
|
|||||||
*/
|
*/
|
||||||
public function getCachedContents($_template, $no_render = false)
|
public function getCachedContents($_template, $no_render = false)
|
||||||
{
|
{
|
||||||
ob_start();
|
if (!$no_render) {
|
||||||
|
ob_start();
|
||||||
|
}
|
||||||
$_smarty_tpl = $_template;
|
$_smarty_tpl = $_template;
|
||||||
include $_template->getCachedFilepath();
|
include $_template->getCachedFilepath();
|
||||||
if ($no_render) {
|
if ($no_render) {
|
||||||
ob_clean();
|
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
return ob_get_clean();
|
return ob_get_clean();
|
||||||
|
Reference in New Issue
Block a user