mirror of
https://github.com/friendica/friendica
synced 2025-04-24 02:30:13 +00:00
Update Addon functions and calls
Update function names and calls for Addon class.
This commit is contained in:
parent
213f6ae1a1
commit
11cf36105c
73 changed files with 544 additions and 464 deletions
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Module\Login;
|
||||
|
@ -9,7 +10,7 @@ if(! function_exists('home_init')) {
|
|||
function home_init(App $a) {
|
||||
|
||||
$ret = [];
|
||||
call_hooks('home_init',$ret);
|
||||
Addon::callHooks('home_init',$ret);
|
||||
|
||||
if (local_user() && ($a->user['nickname'])) {
|
||||
goaway(System::baseUrl()."/network");
|
||||
|
@ -46,7 +47,7 @@ function home_content(App $a) {
|
|||
$login = Login::form($a->query_string, $a->config['register_policy'] == REGISTER_CLOSED ? 0 : 1);
|
||||
|
||||
$content = '';
|
||||
call_hooks("home_content",$content);
|
||||
Addon::callHooks("home_content",$content);
|
||||
|
||||
|
||||
$tpl = get_markup_template('home.tpl');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue