mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- bugfix PHP did eat line break on nocache sections
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user