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