Tpl::register_callable(): fix registering function
This commit is contained in:
parent
8f90854f0f
commit
d642f3c9dd
1 changed files with 2 additions and 2 deletions
|
@ -272,8 +272,8 @@ class Tpl {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$function = new \ReflectionFunction($callable);
|
$function = new \ReflectionFunction($callable);
|
||||||
$default_smarty_function_name = "smarty_$function";
|
$default_smarty_function_name = sprintf("smarty_%s", $function->getName());
|
||||||
$default_smarty_name = $callable;
|
$default_smarty_name = $function->getName();
|
||||||
$callable_txt = $callable;
|
$callable_txt = $callable;
|
||||||
$params = $function->getParameters();
|
$params = $function->getParameters();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue