[svn r12515] improve the email sent to invite users

skala
Eric Marguin 19 years ago
parent ed37abe5f6
commit f82238058a
  1. 8
      main/survey/survey_invite.php

@ -248,12 +248,16 @@ function save_invitations($users_array, $invitation_title, $invitation_text, $re
// replacing the **link** part with a valid link for the user // replacing the **link** part with a valid link for the user
$survey_link = $_configuration['root_web'].$_configuration['code_append'].'survey/'.'fillsurvey.php?course='.$_course['sysCode'].'&invitationcode='.$invitation_code; $survey_link = $_configuration['root_web'].$_configuration['code_append'].'survey/'.'fillsurvey.php?course='.$_course['sysCode'].'&invitationcode='.$invitation_code;
$full_invitation_text = str_ireplace('**link**', $survey_link ,$invitation_text, $replace_count); $text_link = '<a href="'.$survey_link.'">'.get_lang('ClickHereToAnswerTheSurvey')."</a><br />\r\n<br />\r\n".get_lang('OrCopyPasteTheFollowingUrl').' <br />\r\n '.$survey_link;
$full_invitation_text = str_ireplace('**link**', $text_link ,$invitation_text, $replace_count);
if ($replace_count < 1) if ($replace_count < 1)
{ {
$full_invitation_text = $full_invitation_text . $survey_link; $full_invitation_text = $full_invitation_text . "<br />\r\n<br />\r\n".$text_link;
} }
// optionally: finding the e-mail of the course user // optionally: finding the e-mail of the course user
if (is_numeric($value)) if (is_numeric($value))
{ {

Loading…
Cancel
Save