summaryrefslogtreecommitdiff
path: root/lexer/smarty_internal_templatelexer.plex
diff options
context:
space:
mode:
authoruwetews <uwe.tews@googlemail.com>2016-09-28 23:39:05 +0200
committeruwetews <uwe.tews@googlemail.com>2016-09-28 23:39:05 +0200
commit5b508b7bf3fc08603b6e7096c468258d083d43a9 (patch)
tree6b7e4b58371fd0c0ca7abafaa9baa16fccebb473 /lexer/smarty_internal_templatelexer.plex
parent998c7789485e89f401d2cae4af3fda91a8a03956 (diff)
downloadsmarty-5b508b7bf3fc08603b6e7096c468258d083d43a9.tar.gz
smarty-5b508b7bf3fc08603b6e7096c468258d083d43a9.tar.bz2
smarty-5b508b7bf3fc08603b6e7096c468258d083d43a9.zip
- bugfix nocache hash was not removed for <?xml ?> tags in subtemplates https://github.com/smarty-php/smarty/issues/300
Diffstat (limited to 'lexer/smarty_internal_templatelexer.plex')
-rw-r--r--lexer/smarty_internal_templatelexer.plex6
1 files changed, 2 insertions, 4 deletions
diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex
index 312c6fd0..a455baf8 100644
--- a/lexer/smarty_internal_templatelexer.plex
+++ b/lexer/smarty_internal_templatelexer.plex
@@ -341,8 +341,7 @@ class Smarty_Internal_Templatelexer
return false;
}
phptag {
- $obj = new Smarty_Internal_Compile_Private_Php();
- $obj->parsePhp($this);
+ $this->compiler->getTagCompiler('private_php')->parsePhp($this);
}
ldel literal rdel {
if ($this->smarty->auto_literal && isset($this->value[$this->ldel_length]) ? strpos(" \n\t\r", $this->value[$this->ldel_length]) !== false : false) {
@@ -364,8 +363,7 @@ class Smarty_Internal_Templatelexer
$this->token = Smarty_Internal_Templateparser::TP_TEXT;
}
phpstart {
- $obj = new Smarty_Internal_Compile_Private_Php();
- $obj->parsePhp($this);
+ $this->compiler->getTagCompiler('private_php')->parsePhp($this);
}
text {
$to = strlen($this->data);