mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:50:10 +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
|
@ -7,7 +7,7 @@ namespace Friendica\Model;
|
|||
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
|
@ -311,7 +311,7 @@ class Event extends BaseObject
|
|||
$item_id = 0;
|
||||
}
|
||||
|
||||
Addon::callHooks('event_updated', $event['id']);
|
||||
Hook::callAll('event_updated', $event['id']);
|
||||
} else {
|
||||
$event['guid'] = defaults($arr, 'guid', System::createUUID());
|
||||
|
||||
|
@ -361,7 +361,7 @@ class Event extends BaseObject
|
|||
$item_id = Item::insert($item_arr);
|
||||
}
|
||||
|
||||
Addon::callHooks("event_created", $event['id']);
|
||||
Hook::callAll("event_created", $event['id']);
|
||||
}
|
||||
|
||||
return $item_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue