diff --git a/NEWS b/NEWS index 6b907875..c7395f15 100644 --- a/NEWS +++ b/NEWS @@ -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. diff --git a/Smarty.class.php b/Smarty.class.php index ff0c4d2e..d8ffed8e 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -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; diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index ff0c4d2e..d8ffed8e 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -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;