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:
mistic100 2014-01-18 12:41:40 +00:00
parent a5e853c618
commit df155ae972

View file

@ -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);
}
/**