|
@@ -245,7 +245,11 @@ function save_invitations($users_array, $invitation_title, $invitation_text, $re
|
|
|
|
|
|
// 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;
|
|
|
- $full_invitation_text = $invitation_text . $survey_link;
|
|
|
+ $full_invitation_text = str_ireplace('**link**', $survey_link ,$invitation_text, $replace_count);
|
|
|
+ if ($replace_count < 1)
|
|
|
+ {
|
|
|
+ $full_invitation_text = $full_invitation_text . $survey_link;
|
|
|
+ }
|
|
|
|
|
|
// optionally: finding the e-mail of the course user
|
|
|
if (is_numeric($value))
|