use Friendica\Core\Worker;
Class CronHooks {
- static public function execute($hook = '') {
+ public static function execute($hook = '') {
global $a;
require_once 'include/datetime.php';
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);
+ call_single_hook($a, $name, $single_hook, $data);
}
}
return;