Merge branch 'MDL-85003-main-add-more-info-to-course-request-mail' of https://github.com/melanietreitinger/moodle
This commit is contained in:
@@ -2413,6 +2413,10 @@ class course_request {
|
||||
$a = new stdClass;
|
||||
$a->link = "$CFG->wwwroot/course/pending.php";
|
||||
$a->user = fullname($USER);
|
||||
$a->shortname = s($data->shortname) ?? '';
|
||||
$a->fullname = s($data->fullname) ?? '';
|
||||
$a->category = s($data->category) ?? '';
|
||||
$a->reason = format_text($data->reason, FORMAT_PLAIN) ?? '';
|
||||
$subject = get_string('courserequest');
|
||||
$message = get_string('courserequestnotifyemail', 'admin', $a);
|
||||
foreach ($users as $user) {
|
||||
|
||||
+11
-1
@@ -445,7 +445,17 @@ $string['courselistshortnames_desc'] = 'If enabled, course short names will be d
|
||||
$string['coursemgmt'] = 'Manage courses and categories';
|
||||
$string['courseoverview'] = 'Course overview';
|
||||
$string['courserequestnotify'] = 'Course request notification';
|
||||
$string['courserequestnotifyemail'] = 'User {$a->user} requested a new course at <a href="{$a->link}">{$a->link}</a>.';
|
||||
$string['courserequestnotifyemail'] = '<p>User {$a->user} has requested a new course on your site.</p>
|
||||
<p>You can review the request at <a href="{$a->link}">{$a->link}</a>.</p>
|
||||
|
||||
<p>Request details:</p>
|
||||
<ul>
|
||||
<li>Course full name: {$a->fullname}</li>
|
||||
<li>Course short name : {$a->shortname}</li>
|
||||
<li>Category: {$a->category}</li>
|
||||
<li>Reason for this course request: {$a->reason}</li>
|
||||
</ul>
|
||||
';
|
||||
$string['courserequests'] = 'Course requests';
|
||||
$string['courserequestspending'] = 'Pending course requests';
|
||||
$string['courses'] = 'Courses';
|
||||
|
||||
Reference in New Issue
Block a user