- bugfix PHP did eat line break on nocache sections

This commit is contained in:
uwe.tews@googlemail.com
2011-07-12 17:20:45 +00:00
parent a55e05506e
commit c859f6a9ae
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
===== SVN trunk ===== ===== SVN trunk =====
12/07/2011
- bugfix PHP did eat line break on nocache sections
19/06/2011 19/06/2011
- bugfix clear_config Smarty2 BC wrapper function was missing - bugfix clear_config Smarty2 BC wrapper function was missing

View File

@@ -380,7 +380,7 @@ class Smarty_Internal_TemplateCompilerBase {
$this->template->has_nocache_code = true; $this->template->has_nocache_code = true;
$_output = str_replace("'", "\'", $content); $_output = str_replace("'", "\'", $content);
$_output = str_replace("^#^", "'", $_output); $_output = str_replace("^#^", "'", $_output);
$_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>"; $_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>\n";
// make sure we include modifer plugins for nocache code // make sure we include modifer plugins for nocache code
if (isset($this->template->saved_modifier)) { if (isset($this->template->saved_modifier)) {
foreach ($this->template->saved_modifier as $plugin_name => $dummy) { foreach ($this->template->saved_modifier as $plugin_name => $dummy) {