mirror of
https://github.com/friendica/friendica
synced 2025-04-25 21:50:12 +00:00
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
|
@ -14,8 +14,8 @@ use Friendica\App;
|
|||
use Friendica\Content\OEmbed;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\System;
|
||||
|
@ -295,12 +295,12 @@ class DFRN
|
|||
$root = self::addHeader($doc, $owner, $author, $alternatelink, true);
|
||||
|
||||
/// @TODO This hook can't work anymore
|
||||
// Addon::callHooks('atom_feed', $atom);
|
||||
// \Friendica\Core\Hook::callAll('atom_feed', $atom);
|
||||
|
||||
if (!DBA::isResult($items) || $onlyheader) {
|
||||
$atom = trim($doc->saveXML());
|
||||
|
||||
Addon::callHooks('atom_feed_end', $atom);
|
||||
Hook::callAll('atom_feed_end', $atom);
|
||||
|
||||
return $atom;
|
||||
}
|
||||
|
@ -329,7 +329,7 @@ class DFRN
|
|||
|
||||
$atom = trim($doc->saveXML());
|
||||
|
||||
Addon::callHooks('atom_feed_end', $atom);
|
||||
Hook::callAll('atom_feed_end', $atom);
|
||||
|
||||
return $atom;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue