MyBB Community Forums

Full Version: Hooks with same class method of different objects not being added
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hooks that call the same method, although using different objects, are not being registered.

$method_representation is identical for different objects:
https://github.com/mybb/mybb/blob/featur...ns.php#L68

which causes the new hook to be rejected here:
https://github.com/mybb/mybb/blob/featur...hp#L76-L79

(a plugin developer's solution would be to assign them at different priorities)
I can confirm this. However I'm not sure whether there's a good way to fix this. If anyone has good suggestions feel free to push this.
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/2614

Thanks for contributing to MyBB!

Regards,
The MyBB Group