mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:10:12 +00:00
Some clean up for the worker, arrays are now supported as parameter
This commit is contained in:
parent
2dadbf3f72
commit
2a762868e9
6 changed files with 13 additions and 36 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue