diff --git a/create_classic_poll.php b/create_classic_poll.php index 21c652be333d7a77620f8ea2cd5258f72f7937bc..0df4a69a82b3d4002225399cef2f2c957c62596e 100644 --- a/create_classic_poll.php +++ b/create_classic_poll.php @@ -102,10 +102,10 @@ if (empty($_SESSION['form']->title) || empty($_SESSION['form']->admin_name) || ( $message = __('Mail', "This is the message you have to send to the people you want to poll. \nNow, you have to send this message to everyone you want to poll."); $message .= '<br/><br/>'; $message .= Utils::htmlEscape($_SESSION['form']->admin_name) . ' ' . __('Mail', 'hast just created a poll called') . ' : "' . Utils::htmlEscape($_SESSION['form']->title) . '".<br/>'; - $message .= __('Mail', 'Thanks for filling the poll at the link above') . ' :<br/><br/>%s'; + $message .= __('Mail', 'Thanks for filling the poll at the link above') . ' :<br/><br/><a href="%1$s">%1$s</a>'; $message_admin = __('Mail', "This message should NOT be sent to the polled people. It is private for the poll's creator.\n\nYou can now modify it at the link above"); - $message_admin .= ' :<br/><br/>%s'; + $message_admin .= ' :<br/><br/><a href="%1$s">%1$s</a>'; $message = sprintf($message, Utils::getUrlSondage($poll_id)); $message_admin = sprintf($message_admin, Utils::getUrlSondage($admin_poll_id, true)); diff --git a/create_date_poll.php b/create_date_poll.php index d33e48f1de8952d94e888780cbb0d20270d82c18..76cd6290f9bb074f4eace3685b9c3fbeba38fb12 100644 --- a/create_date_poll.php +++ b/create_date_poll.php @@ -99,10 +99,10 @@ if (!isset($_SESSION['form']->title) || !isset($_SESSION['form']->admin_name) || $message = __('Mail', "This is the message you have to send to the people you want to poll. \nNow, you have to send this message to everyone you want to poll."); $message .= '<br/><br/>'; $message .= Utils::htmlEscape($_SESSION['form']->admin_name) . ' ' . __('Mail', 'hast just created a poll called') . ' : "' . Utils::htmlEscape($_SESSION['form']->title) . '".<br/>'; - $message .= __('Mail', 'Thanks for filling the poll at the link above') . ' :<br/><br/>%s'; + $message .= __('Mail', 'Thanks for filling the poll at the link above') . ' :<br/><br/><a href="%1$s">%1$s</a>'; $message_admin = __('Mail', "This message should NOT be sent to the polled people. It is private for the poll's creator.\n\nYou can now modify it at the link above"); - $message_admin .= ' :<br/><br/>%s'; + $message_admin .= ' :<br/><br/><a href="%1$s">%1$s</a>'; $message = sprintf($message, Utils::getUrlSondage($poll_id)); $message_admin = sprintf($message_admin, Utils::getUrlSondage($admin_poll_id, true)); diff --git a/studs.php b/studs.php index 7270fd1e09a40e05e02cb9395f33154e4d08c1aa..8f793f1cc369910f27645c953e75597b343d4c85 100644 --- a/studs.php +++ b/studs.php @@ -80,7 +80,8 @@ function sendUpdateNotification($poll, $mailService, $name, $type) { $message .= __('Mail', "wrote a comment.\nYou can find your poll at the link") . " :\n\n"; break; } - $message .= Utils::getUrlSondage($poll->admin_id, true) . "\n\n"; + $urlSondage = Utils::getUrlSondage($poll->admin_id, true); + $message .= '<a href="' . $urlSondage . '">' . $urlSondage . '</a>' . "\n\n"; $messageTypeKey = $type . '-' . $poll->id; $mailService->send($poll->admin_mail, $subject, $message, $messageTypeKey);