replace property array by object properties

This commit is contained in:
uwetews
2015-08-09 20:43:04 +02:00
parent 643e6784e8
commit d16e2d3a15
9 changed files with 310 additions and 204 deletions

View File

@@ -30,9 +30,9 @@ class Smarty_Internal_Function_Call_Handler
*
* @return bool
*/
public static function call($_name, Smarty_Internal_Template $_smarty_tpl, $_function, $_params, $_nocache)
public static function call($_name, Smarty_Internal_Template $_smarty_tpl, $_function)
{
$funcParam = $_smarty_tpl->properties['tpl_function'][$_name];
$funcParam = $_smarty_tpl->tpl_function[$_name];
if (is_file($funcParam['compiled_filepath'])) {
// read compiled file
$code = file_get_contents($funcParam['compiled_filepath']);
@@ -41,7 +41,6 @@ class Smarty_Internal_Function_Call_Handler
// grab source info from file dependency
preg_match("/\s*'{$funcParam['uid']}'([\S\s]*?)\),/", $code, $match1);
unset($code);
$output = '';
// make PHP function known
eval($match[0]);
if (function_exists($_function)) {