mirror of
https://github.com/friendica/friendica
synced 2025-05-03 09:04:10 +02: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
|
@ -4,8 +4,8 @@
|
|||
*/
|
||||
namespace Friendica\Util;
|
||||
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Protocol\Email;
|
||||
|
@ -33,7 +33,7 @@ class Emailer
|
|||
*/
|
||||
public static function send($params)
|
||||
{
|
||||
Addon::callHooks('emailer_send_prepare', $params);
|
||||
Hook::callAll('emailer_send_prepare', $params);
|
||||
|
||||
$email_textonly = false;
|
||||
if (!empty($params['uid'])) {
|
||||
|
@ -89,7 +89,7 @@ class Emailer
|
|||
'parameters' => $sendmail_params
|
||||
];
|
||||
|
||||
Addon::callHooks("emailer_send", $hookdata);
|
||||
Hook::callAll("emailer_send", $hookdata);
|
||||
|
||||
$res = mail(
|
||||
$hookdata['to'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue