MantisBT: master-1.3.x a409d928

Author Committer Branch Timestamp Parent
cproensa vboctor master-1.3.x 2016-01-22 03:37 master-1.3.x 62cb79c5
Affected Issues  0020535: EVENT_BUG_VIEW_ATTACHMENT prints an extra "Array" before the plugin output.
Changeset

Fix passing parameters for EVENT_TYPE_OUTPUT events

Some events of EVENT_TYPE_OUTPUT specify a parameter
to be passed to the callback function.
However the event dispatcher for that type was not
designed to receive a parameter in that way.

Modified the event function to allow for that parameter
to be passed on, thus matching documented specification
and current use in code base.

Affected events are:
EVENT_MANAGE_OVERVIEW_INFO
EVENT_VIEW_BUG_ATTACHMENT

Those events have not been working properly until now.

Fixes 0020535

mod - core/event_api.php Diff File