update
This commit is contained in:
@@ -556,7 +556,8 @@ class Smarty_Compiler extends Smarty {
|
||||
|
||||
case 'php':
|
||||
/* handle folded tags replaced by {php} */
|
||||
list(, $block) = each($this->_folded_blocks);
|
||||
$block = current($this->_folded_blocks);
|
||||
next($this->_folded_blocks);
|
||||
$this->_current_line_no += substr_count($block[0], "\n");
|
||||
/* the number of matched elements in the regexp in _compile_file()
|
||||
determins the type of folded tag that was found */
|
||||
|
||||
@@ -556,7 +556,8 @@ class Smarty_Compiler extends Smarty {
|
||||
|
||||
case 'php':
|
||||
/* handle folded tags replaced by {php} */
|
||||
list(, $block) = each($this->_folded_blocks);
|
||||
$block = current($this->_folded_blocks);
|
||||
next($this->_folded_blocks);
|
||||
$this->_current_line_no += substr_count($block[0], "\n");
|
||||
/* the number of matched elements in the regexp in _compile_file()
|
||||
determins the type of folded tag that was found */
|
||||
|
||||
@@ -556,7 +556,8 @@ class Smarty_Compiler extends Smarty {
|
||||
|
||||
case 'php':
|
||||
/* handle folded tags replaced by {php} */
|
||||
list(, $block) = each($this->_folded_blocks);
|
||||
$block = current($this->_folded_blocks);
|
||||
next($this->_folded_blocks);
|
||||
$this->_current_line_no += substr_count($block[0], "\n");
|
||||
/* the number of matched elements in the regexp in _compile_file()
|
||||
determins the type of folded tag that was found */
|
||||
|
||||
@@ -556,7 +556,8 @@ class Smarty_Compiler extends Smarty {
|
||||
|
||||
case 'php':
|
||||
/* handle folded tags replaced by {php} */
|
||||
list(, $block) = each($this->_folded_blocks);
|
||||
$block = current($this->_folded_blocks);
|
||||
next($this->_folded_blocks);
|
||||
$this->_current_line_no += substr_count($block[0], "\n");
|
||||
/* the number of matched elements in the regexp in _compile_file()
|
||||
determins the type of folded tag that was found */
|
||||
|
||||
Reference in New Issue
Block a user