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
|
@ -19,8 +19,8 @@ use Friendica\App;
|
|||
use Friendica\Content\Pager;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Protocol;
|
||||
|
@ -54,7 +54,7 @@ function item_post(App $a) {
|
|||
exit();
|
||||
}
|
||||
|
||||
Addon::callHooks('post_local_start', $_REQUEST);
|
||||
Hook::callAll('post_local_start', $_REQUEST);
|
||||
|
||||
Logger::log('postvars ' . print_r($_REQUEST, true), Logger::DATA);
|
||||
|
||||
|
@ -679,7 +679,7 @@ function item_post(App $a) {
|
|||
exit();
|
||||
}
|
||||
|
||||
Addon::callHooks('post_local',$datarray);
|
||||
Hook::callAll('post_local',$datarray);
|
||||
|
||||
if (!empty($datarray['cancel'])) {
|
||||
Logger::log('mod_item: post cancelled by addon.');
|
||||
|
@ -795,7 +795,7 @@ function item_post(App $a) {
|
|||
}
|
||||
}
|
||||
|
||||
Addon::callHooks('post_local_end', $datarray);
|
||||
Hook::callAll('post_local_end', $datarray);
|
||||
|
||||
if (strlen($emailcc) && $profile_uid == local_user()) {
|
||||
$erecips = explode(',', $emailcc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue