MantisBT: master 2b20ecf7

Author Committer Branch Timestamp Parent
jreese jreese master 2010-04-20 12:15 master 79255f6b
Changeset

Fix potential error loop with output plugins

In cases where a plugin hooks the page layout events, and encounters an
error that halts execution, the error API will inadvertantly trigger the
plugin's error a second time while generating the error output. This
can potentially lead to a fatal PHP error instead of an error message.

To fix this, the event API gains a new function to clear all callbacks
hooked to all events. This allows the error API to safely generate
output without plugin hooks being called.

mod - core/error_api.php Diff File
mod - core/event_api.php Diff File