Skip to content
Snippets Groups Projects
Commit 4515d0b3 authored by Laurent's avatar Laurent
Browse files

perf improvements test fix

parent 077ead2f
Branches
Tags
3 merge requests!2080Sandbox detach zf from storm,!2061Master,!1965Performance improvements
......@@ -24,9 +24,12 @@ class ZendAfi_Translate extends Zend_Translate {
if (!$num = func_num_args())
return '';
return $num <= 1
? parent::_(Class_TextReplacements::replace(func_get_args()[0]))
: call_user_func_array('sprintf', func_get_args());
if ($num <= 1)
return parent::_(Class_TextReplacements::replace(func_get_args()[0]));
$args = func_get_args();
$args[0] = parent::_(Class_TextReplacements::replace($args[0]));
return call_user_func_array('sprintf', $args);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment