minor bugfix when processing autoliteral { php} tag. Does not effect generated output.

This commit is contained in:
Uwe Tews
2015-05-23 23:40:02 +02:00
parent 0356b70578
commit c9cd39f36f
3 changed files with 1 additions and 2 deletions

View File

@@ -328,7 +328,6 @@ class Smarty_Internal_Templatelexer
phpstart { phpstart {
$obj = new Smarty_Internal_Compile_Private_Php(); $obj = new Smarty_Internal_Compile_Private_Php();
$obj->parsePhp($this); $obj->parsePhp($this);
$this->token = Smarty_Internal_Templateparser::TP_PHP;
} }
ldel literal rdel { 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) { if ($this->smarty->auto_literal && isset($this->value[$this->ldel_length]) ? strpos(" \n\t\r", $this->value[$this->ldel_length]) !== false : false) {

View File

@@ -101,6 +101,7 @@ class Smarty_Internal_Compile_Private_Php extends Smarty_Internal_CompileBase
*/ */
public function parsePhp($lex) public function parsePhp($lex)
{ {
$lex->token = Smarty_Internal_Templateparser::TP_PHP;
$close = 0; $close = 0;
$lex->taglineno = $lex->line; $lex->taglineno = $lex->line;
$closeTag = '?>'; $closeTag = '?>';

View File

@@ -340,7 +340,6 @@ class Smarty_Internal_Templatelexer
$obj = new Smarty_Internal_Compile_Private_Php(); $obj = new Smarty_Internal_Compile_Private_Php();
$obj->parsePhp($this); $obj->parsePhp($this);
$this->token = Smarty_Internal_Templateparser::TP_PHP;
} }
function yy_r1_15() function yy_r1_15()