From d56b2856e52675fdfd5d462aa4db2839fdb2d901 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Uls=C3=B8=20Kristensen?= Date: Thu, 16 Jun 2022 13:26:14 +0200 Subject: [PATCH] Changed mail footer to public url. --- src/psm/Util/Server/Updater/StatusNotifier.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/psm/Util/Server/Updater/StatusNotifier.php b/src/psm/Util/Server/Updater/StatusNotifier.php index 4081b860..e21b1acb 100644 --- a/src/psm/Util/Server/Updater/StatusNotifier.php +++ b/src/psm/Util/Server/Updater/StatusNotifier.php @@ -424,10 +424,12 @@ class StatusNotifier psm_parse_msg($this->status_new, 'email_subject', $this->server); $mail->Priority = 1; + $publicUrl = PSM_BASE_URL.'/public.php'; + $body = key_exists('message', $combi) ? $combi['message'] : psm_parse_msg($this->status_new, 'email_body', $this->server); - if ((bool)psm_get_conf('email_add_url')) $body .= PHP_EOL.PHP_EOL.''.PSM_BASE_URL.''; + if ((bool)psm_get_conf('email_add_url')) $body .= PHP_EOL.PHP_EOL.''.$publicUrl.''; $mail->Body = $body; $mail->AltBody = str_replace('
', "\n", $body);