From 49c34c5796dd0936e8facd9635c6efbc6b086b93 Mon Sep 17 00:00:00 2001 From: andrey Date: Thu, 21 Mar 2002 15:49:12 +0000 Subject: [PATCH] Made is possible to assign variables in pre/postfilters. --- NEWS | 3 +++ Smarty.class.php | 1 + libs/Smarty.class.php | 1 + 3 files changed, 5 insertions(+) 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;