Skip to content

Commit

Permalink
Merge branch 'MDL-44505' of https://github.com/bostelm/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Mar 18, 2014
2 parents 319633a + 013e85b commit c98eded
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions mod/forum/lang/en/forum.php
Expand Up @@ -360,6 +360,7 @@
To reply click on this link:';
$string['postmailnow'] = '<p>This post will be mailed out immediately to all forum subscribers.</p>';
$string['postmailsubject'] = '{$a->courseshortname}: {$a->subject}';
$string['postrating1'] = 'Mostly separate knowing';
$string['postrating2'] = 'Separate and connected';
$string['postrating3'] = 'Mostly connected knowing';
Expand Down
6 changes: 5 additions & 1 deletion mod/forum/lib.php
Expand Up @@ -731,7 +731,11 @@ function forum_cron() {

$shortname = format_string($course->shortname, true, array('context' => context_course::instance($course->id)));

$postsubject = html_to_text("$shortname: ".format_string($post->subject, true));
$a = new stdClass();
$a->courseshortname = $shortname;
$a->forumname = $cleanforumname;
$a->subject = format_string($post->subject, true);
$postsubject = html_to_text(get_string('postmailsubject', 'forum', $a));
$posttext = forum_make_mail_text($course, $cm, $forum, $discussion, $post, $userfrom, $userto);
$posthtml = forum_make_mail_html($course, $cm, $forum, $discussion, $post, $userfrom, $userto);

Expand Down

0 comments on commit c98eded

Please sign in to comment.