From fcf12b0b28718c3255d73efd0dc32ec3e93313b5 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Thu, 24 Oct 2013 08:42:36 +0000 Subject: 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 --- include/functions.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/functions.inc.php') 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; -- cgit v1.2.3