]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Worker.php
Replace deprecated Addon::callHooks with Hook::callAll
[friendica.git] / src / Core / Worker.php
index 3a4be04381b754401d664e561210224fdee3b8e4..aae3e85d0824ada4bc957b31a7b33def0613b798 100644 (file)
@@ -5,7 +5,6 @@
 namespace Friendica\Core;
 
 use Friendica\BaseObject;
-use Friendica\Core\Logger;
 use Friendica\Database\DBA;
 use Friendica\Model\Process;
 use Friendica\Util\DateTimeFormat;
@@ -1070,7 +1069,7 @@ class Worker
 
                $arr = ['args' => $args, 'run_cmd' => true];
 
-               Addon::callHooks("proc_run", $arr);
+               Hook::callAll("proc_run", $arr);
                if (!$arr['run_cmd'] || !count($args)) {
                        return true;
                }