mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Do not call trigger for blacklisted modules
This commit is contained in:
parent
38b7a92015
commit
d4a7b921d0
1 changed files with 6 additions and 0 deletions
|
|
@ -1191,6 +1191,12 @@ class ModuleHandler extends Handler
|
|||
$type = $item->type;
|
||||
$called_method = $item->called_method;
|
||||
|
||||
// do not call if module is blacklisted
|
||||
if (Context::isBlacklistedPlugin($module))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// todo why don't we call a normal class object ?
|
||||
$oModule = getModule($module, $type);
|
||||
if(!$oModule || !method_exists($oModule, $called_method))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue