]> git.mxchange.org Git - friendica.git/blobdiff - include/poller.php
contact edit tool buttons a bit crowded
[friendica.git] / include / poller.php
index b5639e03472f759a81ab1b2831328bb537457388..dd2efcb76c4c5d2d29bfb30c762e488584bdfc42 100644 (file)
@@ -26,6 +26,8 @@ function poller_run($argv, $argc){
 
        $a->set_baseurl(get_config('system','url'));
 
+       load_hooks();
+
        logger('poller: start');
        
        // run queue delivery process in the background
@@ -61,10 +63,12 @@ function poller_run($argv, $argc){
 
        $sql_extra = (($manual_id) ? " AND `id` = $manual_id " : "");
 
+       reload_plugins();
+
        $d = datetime_convert();
+
        call_hooks('cron', $d);
 
-       reload_plugins();
 
        $contacts = q("SELECT `id` FROM `contact` 
                WHERE ( `rel` = %d OR `rel` = %d ) AND `poll` != ''