MantisBT: master 2cf4437c

Author Committer Branch Timestamp Parent
dregad dregad master 2024-12-27 19:01 master a52bf022
Affected Issues  0035208: Improve error handling for invalid plugins
Changeset

Return false when Plugin init fails

When a Plugin fails to initialize due to hooking a non-existing Event,
the APIs now return false, allowing the caller to catch the problem.

For backwards compatibility, since these functions previously had no
return type, we consider a return value of null as true.

Fixes 0035208

mod - core/classes/MantisPlugin.class.php Diff File
mod - core/event_api.php Diff File
mod - core/plugin_api.php Diff File