From 8372ef8874e313cc7b0283d26ffc171ff83b2bf2 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Wed, 24 Mar 2010 11:23:18 +0000 Subject: [PATCH] - bugfix on register->modifier() error messages --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_register.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/change_log.txt b/change_log.txt index 530ff8b9..032010a9 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +24/03/2010 +- bugfix on register->modifier() error messages + 23/03/2010 - bugfix on template inheritance when calling multiple child/parent relations - bugfix on caching mode SMARTY_CACHING_LIFETIME_SAVED and cache_lifetime = 0 diff --git a/libs/sysplugins/smarty_internal_register.php b/libs/sysplugins/smarty_internal_register.php index 67df1918..fb43d6fc 100644 --- a/libs/sysplugins/smarty_internal_register.php +++ b/libs/sysplugins/smarty_internal_register.php @@ -108,9 +108,9 @@ class Smarty_Internal_Register { function modifier($modifier_name, $modifier_impl) { if (isset($this->smarty->registered_plugins['modifier'][$modifier_name])) { - throw new Exception("Plugin \"{$modifier}\" already registered"); + throw new Exception("Plugin \"{$modifier_name}\" already registered"); } elseif (!is_callable($modifier_impl)) { - throw new Exception("Plugin \"{$modifier}\" not callable"); + throw new Exception("Plugin \"{$modifier_name}\" not callable"); } else { $this->smarty->registered_plugins['modifier'][$modifier_name] = array($modifier_impl);