Merge pull request #42 from PrestaEdit/PSCFV-5766

[-] FO : fixed bug #PSCFV-5766 - Truncate smarty_modifier_truncate $etc param is not taken
This commit is contained in:
Vincent Augagneur
2012-11-29 08:30:57 -08:00
+11 -1
View File
@@ -228,7 +228,17 @@ class SmartyLazyRegister
if (is_array($item[1]))
return call_user_func_array($item[1].'::'.$item[0], array($arguments[0], &$arguments[1]));
else
return call_user_func_array($item, array($arguments[0], &$arguments[1]));
{
$args = array();
foreach($arguments as $a => $argument)
if($a == 0)
$args[] = $arguments[0];
else
$args[] = &$arguments[$a];
return call_user_func_array($item, $args);
}
}
public static function getInstance()