mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 11:44:16 +02:00
- bugfix PHP did eat line break on nocache sections
This commit is contained in:
@@ -380,7 +380,7 @@ class Smarty_Internal_TemplateCompilerBase {
|
||||
$this->template->has_nocache_code = true;
|
||||
$_output = str_replace("'", "\'", $content);
|
||||
$_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
|
||||
if (isset($this->template->saved_modifier)) {
|
||||
foreach ($this->template->saved_modifier as $plugin_name => $dummy) {
|
||||
|
||||
Reference in New Issue
Block a user