Skip to content

Commit

Permalink
Messaging 2.0 fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethem committed Aug 7, 2008
1 parent e9017ad commit e3f6824
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions enrol/authorize/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private function cc_submit($form, $course)
$a = new stdClass;
$a->course = "$course->fullname";
$a->user = fullname($USER);

$eventdata = new object();
$eventdata->modulename = 'moodle';
$eventdata->userfrom = $USER;
Expand All @@ -296,7 +296,7 @@ private function cc_submit($form, $course)
$eventdata = new object();
$eventdata->modulename = 'moodle';
$eventdata->userfrom = $USER;
$eventdata->userto = $paymentmanager;
$eventdata->userto = $admin;
$eventdata->subject = get_string("enrolmentnew", '', format_string($course->shortname));
$eventdata->fullmessage = get_string('enrolmentnewuser', '', $a);
$eventdata->fullmessageformat = FORMAT_PLAIN;
Expand Down Expand Up @@ -837,7 +837,7 @@ private function cron_daily()
$a->enrolurl = "$CFG->wwwroot/$CFG->admin/enrol_config.php?enrol=authorize";
$a->url = $CFG->wwwroot.'/enrol/authorize/index.php?status='.AN_STATUS_AUTH;
$message = get_string('pendingordersemail', 'enrol_authorize', $a);

$eventdata = new object();
$eventdata->modulename = 'moodle';
$eventdata->userfrom = $adminuser;
Expand All @@ -846,7 +846,7 @@ private function cron_daily()
$eventdata->fullmessage = $message;
$eventdata->fullmessageformat = FORMAT_PLAIN;
$eventdata->fullmessagehtml = '';
$eventdata->smallmessage = '';
$eventdata->smallmessage = '';
events_trigger('message_send', $eventdata);

// Email to payment managers
Expand Down Expand Up @@ -894,7 +894,7 @@ private function cron_daily()
$eventdata->fullmessage = $message;
$eventdata->fullmessageformat = FORMAT_PLAIN;
$eventdata->fullmessagehtml = '';
$eventdata->smallmessage = '';
$eventdata->smallmessage = '';
events_trigger('message_send', $eventdata);
}
}
Expand Down

0 comments on commit e3f6824

Please sign in to comment.