mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- bugfix on register->modifier() error messages
This commit is contained in:
@@ -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
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user