Browse files

Fixed formatting of welcome email

  • Loading branch information...
1 parent 9fd9fe6 commit 7ddb84b5e5ccb15bb3cdfa85d267d8f9adc2323b martin committed Jul 19, 2002
Showing with 4 additions and 2 deletions.
  1. +4 −2 course/enrol.php
View
6 course/enrol.php
@@ -24,8 +24,10 @@
}
$subject = get_string("welcometocourse", "", $course->fullname);
- $message = get_string("welcometocoursetext", "", $course->fullname,
- "$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id");
+
+ $a->coursename = $course->fullname;
+ $a->profileurl = "$CFG->wwwroot/user/view.php?id=$USER->id&course=$course->id";
+ $message = get_string("welcometocoursetext", "", $a);
email_to_user($USER, get_teacher($course->id), $subject, $message);

0 comments on commit 7ddb84b

Please sign in to comment.