]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/CronHooks.php
cron.php is reworked, other worker files had been moved temporarily
[friendica.git] / src / Worker / CronHooks.php
index 86075760df6d7937e454059fdd3f49480c77b511..42670eb2380f514dfe559c362c4ce1c2da21a537 100644 (file)
@@ -5,7 +5,7 @@ use Friendica\Core\Config;
 use Friendica\Core\Worker;
 
 Class CronHooks {
-       static public function execute($hook = '') {
+       public static function execute($hook = '') {
                global $a;
 
                require_once 'include/datetime.php';
@@ -14,7 +14,7 @@ Class CronHooks {
                        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;