diff --git a/main/announcements/announcements.php b/main/announcements/announcements.php
index a2a53ccb69..f36ee5294a 100755
--- a/main/announcements/announcements.php
+++ b/main/announcements/announcements.php
@@ -477,7 +477,7 @@ if (api_is_allowed_to_edit(false,true) OR (api_get_course_setting('allow_user_ed
$mail_body = api_get_person_name($myrow["lastname"], $myrow["firstname"], null, PERSON_NAME_EMAIL_ADDRESS)."
\n".stripslashes($emailTitle)."
";
// Main part of the email
- $mail_body .= trim(stripslashes(AnnouncementManager::parse_content($newContent)));
+ $mail_body .= trim(stripslashes(AnnouncementManager::parse_content($newContent, api_get_course_id())));
// Signature of email: sender name and course URL after -- line
$mail_body .= "
--
";
$mail_body .= api_get_person_name($_user['firstName'], $_user['lastName'], null, PERSON_NAME_EMAIL_ADDRESS)." \n";
diff --git a/main/auth/lostPassword.php b/main/auth/lostPassword.php
index dc1c8ff55c..c3cc2ed1c9 100755
--- a/main/auth/lostPassword.php
+++ b/main/auth/lostPassword.php
@@ -49,7 +49,7 @@ if (isset ($_GET['reset']) && isset ($_GET['id'])) {
$form->addElement('style_submit_button', 'submit', get_lang('Send'),'class="save"');
// setting the rules
- $form->addRule('user', '