mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
fixed bug with cached insert tags
This commit is contained in:
@@ -105,6 +105,7 @@ class Smarty
|
||||
// internal vars
|
||||
var $_error_msg = false; // error messages. true/false
|
||||
var $_tpl_vars = array();
|
||||
var $_smarty_md5 = 'f8d698aea36fcbead2b9d5359ffca76f'; // md5 checksum of the string 'Smarty'
|
||||
|
||||
/*======================================================================*\
|
||||
Function: Smarty
|
||||
@@ -417,7 +418,9 @@ class Smarty
|
||||
list($cached_inserts, $insert_args) = $match;
|
||||
|
||||
for ($i = 0; $i < count($cached_inserts); $i++) {
|
||||
|
||||
$args = unserialize($insert_args[$i]);
|
||||
|
||||
$name = $args['name'];
|
||||
unset($args['name']);
|
||||
|
||||
|
@@ -7,7 +7,6 @@ class Smarty_Compiler extends Smarty {
|
||||
var $_literal_blocks = array(); // keeps literal template blocks
|
||||
var $_current_file = null; // the current template being compiled
|
||||
var $_current_line_no = 1; // line number for error messages
|
||||
var $_smarty_md5 = 'f8d698aea36fcbead2b9d5359ffca76f'; // md5 checksum of the string 'Smarty'
|
||||
|
||||
/*======================================================================*\
|
||||
Function: _traverse_files()
|
||||
@@ -210,7 +209,6 @@ class Smarty_Compiler extends Smarty {
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
/*======================================================================*\
|
||||
Function: _compile_tag
|
||||
Purpose: Compile a template tag
|
||||
|
@@ -105,6 +105,7 @@ class Smarty
|
||||
// internal vars
|
||||
var $_error_msg = false; // error messages. true/false
|
||||
var $_tpl_vars = array();
|
||||
var $_smarty_md5 = 'f8d698aea36fcbead2b9d5359ffca76f'; // md5 checksum of the string 'Smarty'
|
||||
|
||||
/*======================================================================*\
|
||||
Function: Smarty
|
||||
@@ -417,7 +418,9 @@ class Smarty
|
||||
list($cached_inserts, $insert_args) = $match;
|
||||
|
||||
for ($i = 0; $i < count($cached_inserts); $i++) {
|
||||
|
||||
$args = unserialize($insert_args[$i]);
|
||||
|
||||
$name = $args['name'];
|
||||
unset($args['name']);
|
||||
|
||||
|
@@ -7,7 +7,6 @@ class Smarty_Compiler extends Smarty {
|
||||
var $_literal_blocks = array(); // keeps literal template blocks
|
||||
var $_current_file = null; // the current template being compiled
|
||||
var $_current_line_no = 1; // line number for error messages
|
||||
var $_smarty_md5 = 'f8d698aea36fcbead2b9d5359ffca76f'; // md5 checksum of the string 'Smarty'
|
||||
|
||||
/*======================================================================*\
|
||||
Function: _traverse_files()
|
||||
@@ -210,7 +209,6 @@ class Smarty_Compiler extends Smarty {
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
/*======================================================================*\
|
||||
Function: _compile_tag
|
||||
Purpose: Compile a template tag
|
||||
|
Reference in New Issue
Block a user