fixed bug with cached insert tags

This commit is contained in:
mohrt
2001-03-03 15:41:52 +00:00
parent 53385bf7af
commit 856f77e646
4 changed files with 6 additions and 4 deletions

View File

@@ -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']);

View File

@@ -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

View File

@@ -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']);

View File

@@ -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