mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 21:31:48 +01:00
replace property array by object properties
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user