Commit 9991dc6c authored by Franco Fichtner's avatar Franco Fichtner

plugins: only execute hook if selected

parent 9dd734b3
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment