Modified to pass Smarty object as second parameter to insert functions.

Also moved _smarty_mod_handler() and _smarty_insert_handler() into the class.
This commit is contained in:
andrey
2001-08-10 20:58:15 +00:00
parent 0c64d1694d
commit d5cb0cce11
6 changed files with 86 additions and 40 deletions

View File

@@ -336,7 +336,7 @@ class Smarty_Compiler extends Smarty {
$arg_list[] = "'$arg_name' => $arg_value";
}
return "<?php echo _smarty_insert_handler(array(".implode(', ', (array)$arg_list)."), \$this->caching, \$this->_smarty_md5); ?>\n";
return "<?php echo \$this->_run_insert_handler(array(".implode(', ', (array)$arg_list).")); ?>\n";
}
@@ -947,7 +947,7 @@ class Smarty_Compiler extends Smarty {
else
$modifier_args = '';
$output = "_smarty_mod_handler('$mod_func_name', $map_array, $output$modifier_args)";
$output = "\$this->_run_mod_handler('$mod_func_name', $map_array, $output$modifier_args)";
}
}