diff options
author | mistic100 <mistic@piwigo.org> | 2013-10-24 08:42:36 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2013-10-24 08:42:36 +0000 |
commit | fcf12b0b28718c3255d73efd0dc32ec3e93313b5 (patch) | |
tree | f020f409a75e39845c0b3a7f5133c9f7e5b51cb1 /include | |
parent | a364b38501a3907baa1150cbfd5dc16b05ae782a (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | include/functions.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index 5dc8ea255..e6db2456a 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -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; |