Replace deprecated Addon::callHooks with Hook::callAll
- Update documentation
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user