I'm sure someone knows the answer to this, the way I phrased the question probably wasn't ideal.
Add_On_One has
/library/Mikey/Mikey.php which has an event listener set up with Add_On_One on XenForo's side.
Add_On_Two also has the same event listener, pointing to the same code, same file even (
/library/Mikey/Mikey.php).
The problem is that if both add ons are enabled at the same time, then that code is executed twice.
I intend to release both add ons (at some point), so removing the event listener from one isn't an option as I don't want to have to make one a prerequisite of another, they both do different things, and in future I want to be able to have this event listener in all my mods.
How would I check either during install or in the
/library/Mikey/Mikey.php file to prevent double/triple/quadruple execution?
If it helps,
/library/Mikey/Mikey.php is a template hook file.
Hope that cleared up any confusion.. and hope someone can help me.. thx
