fixed invalid usage of function inside a Smarty string