assignment MDL-26532 fixed regression in assignment_cron() while processing messaging.
authorAparup Banerjee <aparup@moodle.com>
Mon, 21 Feb 2011 07:43:30 +0000 (15:43 +0800)
committerAparup Banerjee <aparup@moodle.com>
Mon, 21 Feb 2011 07:43:30 +0000 (15:43 +0800)
mod/assignment/lib.php

index 9c51c09..82113ba 100644 (file)
@@ -2612,6 +2612,11 @@ function assignment_cron () {
             $eventdata->fullmessageformat = FORMAT_PLAIN;
             $eventdata->fullmessagehtml  = $posthtml;
             $eventdata->smallmessage     = '';
+
+            $eventdata->name            = 'assignment_updates';
+            $eventdata->component       = 'mod_assignment';
+            $eventdata->notification    = 1;
+
             message_send($eventdata);
         }