From 0c552377cd76757da2de081a750c2a664a51d88d Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Tue, 7 Jun 2011 14:31:22 +0000 Subject: [PATCH] - bugfix registerFilter() or registerPlugin() on template objects did register to the main Smarty object if the register methods had been used on the main Smarty object before. --- change_log.txt | 3 +++ libs/Smarty.class.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/change_log.txt b/change_log.txt index 12c4fcdd..6953a637 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== SVN trunk ===== +07/06/2011 +- bugfix registerFilter() or registerPlugin() on template objects did register to the main Smarty object if the register methods had been used on the main Smarty object before. + ===== Smarty 3.0.8 ===== 29/05/2011 - bugfix in templates did break "cache modified check" diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 7e3c4460..483ff222 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -724,8 +724,8 @@ class Smarty extends Smarty_Internal_Data { // clear assigned tpl vars $this->tpl_vars = array(); // clear objects for external methods - unset($this->register); - unset($this->filter); + unset($this->Register); + unset($this->Filter); }