diff options
author | mistic100 <mistic@piwigo.org> | 2014-01-18 12:39:09 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-01-18 12:39:09 +0000 |
commit | c1b07f92307a0e3034a65e0e160667451ccfce0e (patch) | |
tree | 15d750c41936ba1184acdad72dd14e90520e0e04 /include/functions_plugins.inc.php | |
parent | 07e1d14dc4db0336c99fc35322c7143db3aca41f (diff) |
bug 3023: Fatal error when using trigger_notify/trigger_change on PHP < 5.3
git-svn-id: http://piwigo.org/svn/trunk@26846 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions_plugins.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/functions_plugins.inc.php b/include/functions_plugins.inc.php index d71f58491..d3825a047 100644 --- a/include/functions_plugins.inc.php +++ b/include/functions_plugins.inc.php @@ -252,7 +252,8 @@ function remove_event_handler($event, $func, */ function trigger_change($event, $data=null) { - return call_user_func_array('trigger_event', func_get_args()); + $args = func_get_args(); + return call_user_func_array('trigger_event', $args); } /** @@ -302,7 +303,8 @@ function trigger_event($event, $data=null) */ function trigger_notify($event) { - return call_user_func_array('trigger_action', func_get_args()); + $args = func_get_args(); + return call_user_func_array('trigger_action', $args); } /** |