mirror of
https://github.com/friendica/friendica
synced 2025-05-05 21:44:11 +02: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
|
@ -8,12 +8,9 @@ namespace Friendica\Worker;
|
|||
use Friendica\Core\Addon;
|
||||
|
||||
Class ForkHook {
|
||||
public static function execute($name, $hook_json, $data_json) {
|
||||
public static function execute($name, $hook, $data) {
|
||||
global $a;
|
||||
|
||||
$hook = json_decode($hook_json, true);
|
||||
$data = json_decode($data_json, true);
|
||||
|
||||
Addon::callSingleHook($a, $name, $hook, $data);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue