mirror of
https://github.com/friendica/friendica
synced 2025-04-28 11:44:23 +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
|
@ -10,6 +10,7 @@ namespace Friendica\Protocol;
|
|||
|
||||
use Friendica\App;
|
||||
use Friendica\Content\OEmbed;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
|
@ -269,12 +270,12 @@ class DFRN
|
|||
$root = self::addHeader($doc, $owner, $author, $alternatelink, true);
|
||||
|
||||
/// @TODO This hook can't work anymore
|
||||
// call_hooks('atom_feed', $atom);
|
||||
// Addon::callHooks('atom_feed', $atom);
|
||||
|
||||
if (!DBM::is_result($items) || $onlyheader) {
|
||||
$atom = trim($doc->saveXML());
|
||||
|
||||
call_hooks('atom_feed_end', $atom);
|
||||
Addon::callHooks('atom_feed_end', $atom);
|
||||
|
||||
return $atom;
|
||||
}
|
||||
|
@ -303,7 +304,7 @@ class DFRN
|
|||
|
||||
$atom = trim($doc->saveXML());
|
||||
|
||||
call_hooks('atom_feed_end', $atom);
|
||||
Addon::callHooks('atom_feed_end', $atom);
|
||||
|
||||
return $atom;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue