Some clean up for the worker, arrays are now supported as parameter

This commit is contained in:
Michael 2018-02-11 16:18:39 +00:00
parent 2dadbf3f72
commit 2a762868e9
6 changed files with 13 additions and 36 deletions

View file

@ -200,7 +200,7 @@ class Addon
if (is_array($a->hooks) && array_key_exists($name, $a->hooks)) {
foreach ($a->hooks[$name] as $hook) {
Worker::add($priority, 'ForkHook', $name, json_encode($hook), json_encode($data));
Worker::add($priority, 'ForkHook', $name, $hook, $data);
}
}
}