+ if (get_config("system", "worker") AND is_array($a->hooks) AND array_key_exists("cron", $a->hooks)) {
+ foreach ($a->hooks["cron"] as $hook) {
+ logger("Calling cronhooks for '".$hook[1]."'", LOGGER_DEBUG);
+ proc_run(PRIORITY_MEDIUM, "include/cronhooks.php", $hook[1]);
+ }
+ } else
+ call_hooks('cron', $d);
+
+ logger('cronhooks: end');
+
+ set_config('system','last_cronhook', time());