aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2013-10-24 08:42:36 +0000
committermistic100 <mistic@piwigo.org>2013-10-24 08:42:36 +0000
commitfcf12b0b28718c3255d73efd0dc32ec3e93313b5 (patch)
treef020f409a75e39845c0b3a7f5133c9f7e5b51cb1 /include
parenta364b38501a3907baa1150cbfd5dc16b05ae782a (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 'include')
-rw-r--r--include/functions.inc.php3
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;