mirror of
https://github.com/friendica/friendica
synced 2025-05-01 23:04:24 +02: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
|
@ -5,6 +5,7 @@
|
|||
namespace Friendica\Model;
|
||||
|
||||
use Friendica\BaseObject;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\System;
|
||||
|
@ -559,7 +560,7 @@ class Contact extends BaseObject
|
|||
|
||||
$args = ['contact' => $contact, 'menu' => &$menu];
|
||||
|
||||
call_hooks('contact_photo_menu', $args);
|
||||
Addon::callHooks('contact_photo_menu', $args);
|
||||
|
||||
$menucondensed = [];
|
||||
|
||||
|
@ -1146,7 +1147,7 @@ class Contact extends BaseObject
|
|||
|
||||
$arr = ['url' => $url, 'contact' => []];
|
||||
|
||||
call_hooks('follow', $arr);
|
||||
Addon::callHooks('follow', $arr);
|
||||
|
||||
if (x($arr['contact'], 'name')) {
|
||||
$ret = $arr['contact'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue