]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/CronHooks.php
"last-child" is not used anymore
[friendica.git] / src / Worker / CronHooks.php
index 42670eb2380f514dfe559c362c4ce1c2da21a537..fed65b2291e757d484dd8a963456a981c1a14eb6 100644 (file)
@@ -1,4 +1,8 @@
 <?php
+/**
+ * @file src/Worker/CronHooks.php
+ */
+
 namespace Friendica\Worker;
 
 use Friendica\Core\Config;
@@ -14,7 +18,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, $single_hook, $data);
+                                       call_single_hook($a, $hook, $single_hook);
                                }
                        }
                        return;