Skip to content

Commit

Permalink
minor bugfix when processing autoliteral { php} tag. Does not effect …
Browse files Browse the repository at this point in the history
…generated output.
  • Loading branch information
uwetews committed May 23, 2015
1 parent 0356b70 commit c9cd39f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lexer/smarty_internal_templatelexer.plex
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ class Smarty_Internal_Templatelexer
phpstart {
$obj = new Smarty_Internal_Compile_Private_Php();
$obj->parsePhp($this);
$this->token = Smarty_Internal_Templateparser::TP_PHP;
}
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) {
Expand Down
1 change: 1 addition & 0 deletions libs/sysplugins/smarty_internal_compile_private_php.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $
*/
public function parsePhp($lex)
{
$lex->token = Smarty_Internal_Templateparser::TP_PHP;
$close = 0;
$lex->taglineno = $lex->line;
$closeTag = '?>';
Expand Down
1 change: 0 additions & 1 deletion libs/sysplugins/smarty_internal_templatelexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ function yy_r1_3()

$obj = new Smarty_Internal_Compile_Private_Php();
$obj->parsePhp($this);
$this->token = Smarty_Internal_Templateparser::TP_PHP;
}

function yy_r1_15()
Expand Down

0 comments on commit c9cd39f

Please sign in to comment.