Support custom namespaces in ModuleHandler and related processes

This commit is contained in:
Kijin Sung 2023-08-11 21:56:42 +09:00
parent 9e13c5ee6e
commit 7502b7308b
4 changed files with 107 additions and 33 deletions

View file

@ -1418,6 +1418,9 @@ class ModuleController extends Module
// Remove event handlers that are no longer defined by this module.
if (count($registered_event_handlers))
{
// Refresh cache
ModuleModel::getTriggers('null', 'null');
foreach ($GLOBALS['__triggers__'] as $trigger_name => $val1)
{
foreach ($val1 as $called_position => $val2)