1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-22 08:13:14 +02:00

[ticket/17135] Refactor messenger code to services [ci skip]

PHPBB3-17135
This commit is contained in:
rxu
2023-06-06 16:41:55 +07:00
parent 5be1f5d5c9
commit 1f952ca6d8
6 changed files with 99 additions and 57 deletions

View File

@@ -106,12 +106,14 @@ class email extends base
*
* @return void
*/
public function init()
public function reset()
{
$this->email = new Email();
$this->headers = $this->email->getHeaders();
$this->msg = $this->replyto = $this->from = '';
$this->mail_priority = Email::PRIORITY_NORMAL;
parent::reset();
}
/**
@@ -567,6 +569,7 @@ class email extends base
'email' => $this->email,
]);
}
$this->reset();
return true;
}