aboutsummaryrefslogtreecommitdiffstats
path: root/include/smarty/libs/sysplugins/smarty_internal_templateparser.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-10-12 11:14:07 +0000
committermistic100 <mistic@piwigo.org>2013-10-12 11:14:07 +0000
commitefbc08e537e26dde5f1bd98de4f8608ad6e81501 (patch)
tree84ec70add80fe0a875fcaeba15f2bd036481f652 /include/smarty/libs/sysplugins/smarty_internal_templateparser.php
parentbe9144fc7ef46f5f4618336d5cfc4a2f3c58930f (diff)
2816: {strip} removes too much things, fixed again for smarty 3
git-svn-id: http://piwigo.org/svn/trunk@24877 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/smarty/libs/sysplugins/smarty_internal_templateparser.php')
-rw-r--r--include/smarty/libs/sysplugins/smarty_internal_templateparser.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/smarty/libs/sysplugins/smarty_internal_templateparser.php b/include/smarty/libs/sysplugins/smarty_internal_templateparser.php
index d67be6e6f..b0393c694 100644
--- a/include/smarty/libs/sysplugins/smarty_internal_templateparser.php
+++ b/include/smarty/libs/sysplugins/smarty_internal_templateparser.php
@@ -2272,7 +2272,7 @@ static public $yy_action = array(
#line 220 "smarty_internal_templateparser.y"
function yy_r11(){
if ($this->strip) {
- $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)));
+ $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', ' ', self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor)));
} else {
$this->_retvalue = new _smarty_text($this, self::escape_start_tag($this->yystack[$this->yyidx + 0]->minor));
}
@@ -2290,7 +2290,7 @@ static public $yy_action = array(
#line 238 "smarty_internal_templateparser.y"
function yy_r13(){
if ($this->strip) {
- $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', '', $this->yystack[$this->yyidx + 0]->minor));
+ $this->_retvalue = new _smarty_text($this, preg_replace('![\t ]*[\r\n]+[\t ]*!', ' ', $this->yystack[$this->yyidx + 0]->minor));
} else {
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
}