summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-03 13:31:25 +0300
committerAndrew Dolgov <[email protected]>2021-03-03 13:31:25 +0300
commitc86e2423b926456b84c9a651f55a191e4eeab81a (patch)
tree34c284138efb210f386b8f443ab4a6b97969cf04
parentb9bdb61bda549fc35aa30655db1fdbe949ff5bcf (diff)
set Mailer in hook_send_mail prototype
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index fcde6ed..25cf309 100644
--- a/init.php
+++ b/init.php
@@ -33,7 +33,7 @@ class mailer_smtp extends Plugin {
$host->add_hook(PluginHost::HOOK_SEND_MAIL, $this);
}
- function hook_send_mail($mailer, $params) {
+ function hook_send_mail(Mailer $mailer, $params) {
if (Config::get(self::SMTP_SERVER)) {
$phpmailer = new \PHPMailer\PHPMailer\PHPMailer();