mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:50:11 +00:00
Replace deprecated Addon::callHooks with Hook::callAll
- Update documentation
This commit is contained in:
parent
895b3abf32
commit
55e54bb950
58 changed files with 450 additions and 475 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue