feature 2978: error func_get_args(): Can't be used as a function parameter on PHP <= 5.2
git-svn-id: http://piwigo.org/svn/trunk@25113 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
a364b38501
commit
fcf12b0b28
1 changed files with 2 additions and 1 deletions
|
@ -924,7 +924,8 @@ function l10n($key)
|
|||
|
||||
if (func_num_args() > 1)
|
||||
{
|
||||
$val = vsprintf($val, array_slice(func_get_args(), 1));
|
||||
$args = func_get_args();
|
||||
$val = vsprintf($val, array_slice($args, 1));
|
||||
}
|
||||
|
||||
return $val;
|
||||
|
|
Loading…
Reference in a new issue