Made is possible to assign variables in pre/postfilters.

This commit is contained in:
andrey
2002-03-21 15:49:12 +00:00
parent bdbd8168f3
commit 49c34c5796
3 changed files with 5 additions and 0 deletions

3
NEWS
View File

@@ -1,3 +1,6 @@
- made it possible to assign variables in pre/postfilter
plugins. (Andrei)
Version 2.0.1
-------------
- rename plugin .make_timestamp.php to shared.make_timestamp.php.

View File

@@ -933,6 +933,7 @@ function _generate_debug_output() {
$smarty_compiler->security_settings = $this->security_settings;
$smarty_compiler->trusted_dir = $this->trusted_dir;
$smarty_compiler->_plugins = &$this->_plugins;
$smarty_compiler->_tpl_vars = &$this->_tpl_vars;
if ($smarty_compiler->_compile_file($tpl_file, $template_source, $template_compiled))
return true;

View File

@@ -933,6 +933,7 @@ function _generate_debug_output() {
$smarty_compiler->security_settings = $this->security_settings;
$smarty_compiler->trusted_dir = $this->trusted_dir;
$smarty_compiler->_plugins = &$this->_plugins;
$smarty_compiler->_tpl_vars = &$this->_tpl_vars;
if ($smarty_compiler->_compile_file($tpl_file, $template_source, $template_compiled))
return true;