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);