From 28a82388cff1cb0dade94f01ffe3795746506a22 Mon Sep 17 00:00:00 2001 From: Yoann Date: Wed, 10 Oct 2018 10:03:53 +0200 Subject: [PATCH 1/2] Fix wrong display of email subject with a date poll --- create_date_poll.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_date_poll.php b/create_date_poll.php index 12109a4..c53d011 100644 --- a/create_date_poll.php +++ b/create_date_poll.php @@ -236,8 +236,8 @@ switch ($step) { $message_admin = sprintf($message_admin, Utils::getUrlSondage($admin_poll_id, true)); if ($mailService->isValidEmail($form->admin_mail)) { - $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Message for the author') . '] ' . __('Generic', 'Poll') . ': ' . Utils::htmlEscape($form->title), $message_admin); - $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Participant link') . '] ' . __('Generic', 'Poll') . ': ' . Utils::htmlEscape($form->title), $message); + $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Message for the author') . '] ' . __('Generic', 'Poll') . ': ' . $form->title), $message_admin; + $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Participant link') . '] ' . __('Generic', 'Poll') . ': ' . $form->title), $message; } } From b5effb8eaafecb6e7b1e4c2e7c754f6ad4f1823b Mon Sep 17 00:00:00 2001 From: Delattre Yoann Date: Wed, 10 Oct 2018 10:27:41 +0200 Subject: [PATCH 2/2] fix parenthesis --- create_date_poll.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/create_date_poll.php b/create_date_poll.php index c53d011..af3378c 100644 --- a/create_date_poll.php +++ b/create_date_poll.php @@ -236,8 +236,8 @@ switch ($step) { $message_admin = sprintf($message_admin, Utils::getUrlSondage($admin_poll_id, true)); if ($mailService->isValidEmail($form->admin_mail)) { - $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Message for the author') . '] ' . __('Generic', 'Poll') . ': ' . $form->title), $message_admin; - $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Participant link') . '] ' . __('Generic', 'Poll') . ': ' . $form->title), $message; + $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Message for the author') . '] ' . __('Generic', 'Poll') . ': ' . $form->title, $message_admin); + $mailService->send($form->admin_mail, '[' . NOMAPPLICATION . '][' . __('Mail', 'Participant link') . '] ' . __('Generic', 'Poll') . ': ' . $form->title, $message); } }