Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Messaging 2.0 fix.

  • Loading branch information...
commit e3f6824b2a495c9386868840053fca5d3e9779d4 1 parent e9017ad
ethem authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 enrol/authorize/enrol.php
View
10 enrol/authorize/enrol.php
@@ -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;
@@ -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;
@@ -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;
@@ -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
@@ -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);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.