mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
minor bugfix when processing autoliteral { php} tag. Does not effect generated output.
This commit is contained in:
@@ -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) {
|
||||||
|
@@ -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 = '?>';
|
||||||
|
@@ -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()
|
||||||
|
Reference in New Issue
Block a user