<?php
+/**
+ * @file src/Worker/CronHooks.php
+ */
+
namespace Friendica\Worker;
+use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\Worker;
foreach ($a->hooks["cron"] as $single_hook) {
if ($single_hook[1] == $hook) {
logger("Calling cron hook '" . $hook . "'", LOGGER_DEBUG);
- call_single_hook($a, $name, $hook, $data);
+ Addon::callSingleHook($a, $hook, $single_hook);
}
}
return;