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

@ -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);
}
}