From fadbd9be12fff92f366fb614dee8d88c9bb26c5e Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 8 Apr 2010 17:07:25 -0500 Subject: [PATCH] Fixing announcements messages --- main/announcements/announcements.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main/announcements/announcements.php b/main/announcements/announcements.php index 571c1c2974..13435b339d 100755 --- a/main/announcements/announcements.php +++ b/main/announcements/announcements.php @@ -992,16 +992,18 @@ if ($display_form == true) { // setting the variables for the form elements: the message has to be sent by email $email_ann = '1'; // setting the variables for the form elements: the title of the email - $title_to_modify = sprintf(get_lang('RemindInactiveLearnersMailSubject'),api_get_setting('siteName'),' > ',$_course['name']); + //$title_to_modify = sprintf(get_lang('RemindInactiveLearnersMailSubject'), api_get_setting('siteName'),' > ',$_course['name']); + $title_to_modify = sprintf(get_lang('RemindInactiveLearnersMailSubject'), api_get_setting('siteName')); // setting the variables for the form elements: the message of the email - $content_to_modify = sprintf(get_lang('RemindInactiveLearnersMailContent'),api_get_setting('siteName'),' > ',$_course['name'],$since); + //$content_to_modify = sprintf(get_lang('RemindInactiveLearnersMailContent'),api_get_setting('siteName'),' > ',$_course['name'],$since); + $content_to_modify = sprintf(get_lang('RemindInactiveLearnersMailContent'),api_get_setting('siteName'),$since); // when we want to remind the users who have never been active then we have a different subject and content for the announcement if ($_GET['since'] == 'never') { - $title_to_modify = get_lang('NoActivityYetTitle'); - $content_to_modify = get_lang('NoActivityYetContent'); + $title_to_modify = sprintf(get_lang('RemindInactiveLearnersMailSubject'), api_get_setting('siteName')); + $content_to_modify = get_lang('YourAccountIsActiveYouCanLoginAndCheckYourCourses'); } } else { - echo get_lang("Everybody"); + echo get_lang('Everybody'); } show_to_form($to);