Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-28023_assignment_jabber' of git://github.com/andyjd…

…avis/moodle
  • Loading branch information...
commit 5163ac94b06bbdfb8518ea2529f12b6c50b4c53f 2 parents e2542e1 + 0f1751b
@samhemelryk samhemelryk authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/assignment/lib.php
View
6 mod/assignment/lib.php
@@ -1746,7 +1746,7 @@ function email_teachers($submission) {
$eventdata->fullmessage = $posttext;
$eventdata->fullmessageformat = FORMAT_PLAIN;
$eventdata->fullmessagehtml = $posthtml;
- $eventdata->smallmessage = '';
+ $eventdata->smallmessage = $postsubject;
$eventdata->name = 'assignment_updates';
$eventdata->component = 'mod_assignment';
@@ -2616,11 +2616,13 @@ function assignment_cron () {
$eventdata->fullmessage = $posttext;
$eventdata->fullmessageformat = FORMAT_PLAIN;
$eventdata->fullmessagehtml = $posthtml;
- $eventdata->smallmessage = '';
+ $eventdata->smallmessage = $postsubject;
$eventdata->name = 'assignment_updates';
$eventdata->component = 'mod_assignment';
$eventdata->notification = 1;
+ $eventdata->contexturl = $assignmentinfo->url;
+ $eventdata->contexturlname = $assignmentinfo->assignment;
message_send($eventdata);
}
Please sign in to comment.
Something went wrong with that request. Please try again.