mirror of
https://github.com/friendica/friendica
synced 2025-04-23 07:50:12 +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
|
@ -7,6 +7,7 @@ namespace Friendica\Object;
|
|||
use Friendica\BaseObject;
|
||||
use Friendica\Content\ContactSelector;
|
||||
use Friendica\Content\Feature;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\Contact;
|
||||
|
@ -214,7 +215,7 @@ class Post extends BaseObject
|
|||
}
|
||||
|
||||
$locate = ['location' => $item['location'], 'coord' => $item['coord'], 'html' => ''];
|
||||
call_hooks('render_location', $locate);
|
||||
Addon::callHooks('render_location', $locate);
|
||||
$location = ((strlen($locate['html'])) ? $locate['html'] : render_location_dummy($locate));
|
||||
|
||||
// process action responses - e.g. like/dislike/attend/agree/whatever
|
||||
|
@ -405,7 +406,7 @@ class Post extends BaseObject
|
|||
];
|
||||
|
||||
$arr = ['item' => $item, 'output' => $tmp_item];
|
||||
call_hooks('display_item', $arr);
|
||||
Addon::callHooks('display_item', $arr);
|
||||
|
||||
$result = $arr['output'];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue