X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcronhooks.php;h=b6cf0e72378763d6b3e5ac697672dce67438ea02;hb=ed6ada0da571ac88b039a162601ac172c3680710;hp=a4eb5fbb3e62f3671b8a99580e3be592c9126aa2;hpb=5b24050875bc0b2edfee92005bba7c5ef7a17cab;p=friendica.git diff --git a/include/cronhooks.php b/include/cronhooks.php index a4eb5fbb3e..b6cf0e7237 100644 --- a/include/cronhooks.php +++ b/include/cronhooks.php @@ -1,19 +1,21 @@ + time()) { + logger('cronhook intervall not reached'); + return; + } + } + $a->set_baseurl(get_config('system','url')); load_hooks(); logger('cronhooks: start'); - $d = datetime_convert(); call_hooks('cron', $d); + logger('cronhooks: end'); + + set_config('system','last_cronhook', time()); + return; } if (array_search(__file__,get_included_files())===0){ - cronhooks_run($argv,$argc); - killme(); + cronhooks_run($_SERVER["argv"],$_SERVER["argc"]); + killme(); }