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
This commit is contained in:
parent
a5e853c618
commit
df155ae972
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue