MantisBT: master-1.2.x bc978309

Author Committer Branch Timestamp Parent
jreese jreese master-1.2.x 2010-04-20 12:15 master-1.2.x 0ae56c08
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/event_api.php Diff File
mod - core/error_api.php Diff File