mirror of
https://github.com/friendica/friendica
synced 2025-05-01 23:04:24 +02:00
Fix invalid "emailer_prepare" Hook
- Use IEmail instead of array data - Introduce "composer" based library for phpmailer
This commit is contained in:
parent
db9f75fbdb
commit
f6aea0d65a
3 changed files with 24 additions and 5 deletions
|
@ -45,11 +45,9 @@ class Emailer
|
|||
*/
|
||||
public function send(IEmail $email)
|
||||
{
|
||||
$params['sent'] = false;
|
||||
Hook::callAll('emailer_send_prepare', $email);
|
||||
|
||||
Hook::callAll('emailer_send_prepare', $params);
|
||||
|
||||
if ($params['sent']) {
|
||||
if (empty($email)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue