mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
부모 모듈이 블랙리스트에 올라있을때 확장모듈의 트리거도 실행되지 않는 문제 수정
This commit is contained in:
parent
ad19805049
commit
096a1926a9
1 changed files with 7 additions and 7 deletions
|
|
@ -1261,19 +1261,19 @@ class ModuleHandler extends Handler
|
||||||
$type = $item->type;
|
$type = $item->type;
|
||||||
$called_method = $item->called_method;
|
$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 ?
|
// todo why don't we call a normal class object ?
|
||||||
$oModule = getModule($module, $type);
|
$oModule = getModule($module, $type);
|
||||||
if(!$oModule || !method_exists($oModule, $called_method))
|
if(!$oModule || !method_exists($oModule, $called_method))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// do not call if module is blacklisted
|
||||||
|
if (Context::isBlacklistedPlugin($oModule->module))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$before_each_trigger_time = microtime(true);
|
$before_each_trigger_time = microtime(true);
|
||||||
$output = $oModule->{$called_method}($obj);
|
$output = $oModule->{$called_method}($obj);
|
||||||
$after_each_trigger_time = microtime(true);
|
$after_each_trigger_time = microtime(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue