diff options
author | mistic100 <mistic@piwigo.org> | 2014-01-18 12:41:40 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-01-18 12:41:40 +0000 |
commit | df155ae9720ba2aa810a3e48af968b284072be2b (patch) | |
tree | 06f645d45fb8eabf8b83fe7d0185054422a1ac25 /include/functions_plugins.inc.php | |
parent | a5e853c618da907f14299bc78233311d5d4b036c (diff) |
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
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); } /** |