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
|
@ -12,7 +12,6 @@ use Friendica\Content\Pager;
|
|||
use Friendica\Content\Widget;
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\ACL;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
|
@ -355,7 +354,7 @@ function network_content(App $a, $update = 0, $parent = 0)
|
|||
|
||||
/// @TODO Is this really necessary? $a is already available to hooks
|
||||
$arr = ['query' => $a->query_string];
|
||||
Addon::callHooks('network_content_init', $arr);
|
||||
Hook::callAll('network_content_init', $arr);
|
||||
|
||||
$flat_mode = false;
|
||||
|
||||
|
@ -1024,7 +1023,7 @@ function network_tabs(App $a)
|
|||
}
|
||||
|
||||
$arr = ['tabs' => $tabs];
|
||||
Addon::callHooks('network_tabs', $arr);
|
||||
Hook::callAll('network_tabs', $arr);
|
||||
|
||||
$tpl = Renderer::getMarkupTemplate('common_tabs.tpl');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue