From df155ae9720ba2aa810a3e48af968b284072be2b Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sat, 18 Jan 2014 12:41:40 +0000 Subject: Merged revision(s) r26846 from trunk: bug 3023: Fatal error when using trigger_notify/trigger_change on PHP < 5.3 git-svn-id: http://piwigo.org/svn/branches/2.6@26847 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_plugins.inc.php | 6 ++++-- 1 file 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); } /** -- cgit v1.2.3