- bugfix on register->modifier() error messages

This commit is contained in:
Uwe.Tews
2010-03-24 11:23:18 +00:00
parent 63d671b935
commit 8372ef8874
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

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