mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
plugins: only execute hook if selected
This commit is contained in:
parent
9dd734b355
commit
9991dc6c21
@ -170,7 +170,7 @@ function plugins_configure($hook, $verbose = false)
|
||||
if (function_exists($func)) {
|
||||
$workers = $func();
|
||||
foreach ($workers as $when => $worker) {
|
||||
if (is_array($worker)) {
|
||||
if ($hook == $when && is_array($worker)) {
|
||||
foreach ($worker as $task) {
|
||||
$task($verbose);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user