]> git.mjollnir.org Git - moodle.git/commitdiff
*** empty log message ***
authorethem <ethem>
Tue, 5 Feb 2008 17:34:36 +0000 (17:34 +0000)
committerethem <ethem>
Tue, 5 Feb 2008 17:34:36 +0000 (17:34 +0000)
enrol/authorize/enrol.php
enrol/authorize/locallib.php
enrol/authorize/uploadcsv.php

index 7fd9bdc5da49afc74a278e2f924a7cc88fd3030d..4ff65ca929ce0663bf1eced492bb1647565d1d88 100755 (executable)
@@ -222,7 +222,7 @@ class enrolment_plugin_authorize
                 redirect($CFG->wwwroot, get_string("reviewnotify", "enrol_authorize"), '30');
             }
             else {
-                enrol_into_course($course, $USER, 'manual');
+                enrol_into_course($course, $USER, 'authorize');
                 redirect("$CFG->wwwroot/course/view.php?id=$course->id");
             }
             return;
@@ -255,7 +255,7 @@ class enrolment_plugin_authorize
         }
 
         // Credit card captured, ENROL student now...
-        if (enrol_into_course($course, $USER, 'manual')) {
+        if (enrol_into_course($course, $USER, 'authorize')) {
             if (!empty($CFG->enrol_mailstudents)) {
                 send_welcome_messages($order->id);
             }
@@ -651,7 +651,7 @@ class enrolment_plugin_authorize
                     $timeend = $order->settletime + $course->enrolperiod;
                 }
                 $user = get_record('user', 'id', $order->userid);
-                if (role_assign($role->id, $user->id, 0, $context->id, $timestart, $timeend, 0, 'manual')) {
+                if (role_assign($role->id, $user->id, 0, $context->id, $timestart, $timeend, 0, 'authorize')) {
                     $this->log .= "User($user->id) has been enrolled to course($course->id).\n";
                     if (!empty($CFG->enrol_mailstudents)) {
                         $sendem[] = $order->id;
index 648228dbcaf9356d05002e73cde90d543e335670..17911d85611d5baeb5544d5a39eaf389f67b1251 100644 (file)
@@ -279,7 +279,7 @@ function authorize_print_order_details($orderno)
             else {
                 if (empty($CFG->an_test)) {
                     $user = get_record('user', 'id', $order->userid);
-                    if (enrol_into_course($course, $user, 'manual')) {
+                    if (enrol_into_course($course, $user, 'authorize')) {
                         if (!empty($CFG->enrol_mailstudents)) {
                             send_welcome_messages($order->id);
                         }
index 98dff546e95fea0d04b4ae7b7528fe51253f33ca..60719a4e2b973bb790b391ef0666c23ed15857fb 100644 (file)
@@ -206,7 +206,7 @@ function authorize_process_csv($filename)
                     $timestart = time();
                     $timeend = $timestart + $course->enrolperiod;
                 }
-                if (role_assign($role->id, $user->id, 0, $coursecontext->id, $timestart, $timeend, 0, 'manual')) {
+                if (role_assign($role->id, $user->id, 0, $coursecontext->id, $timestart, $timeend, 0, 'authorize')) {
                     $imported++;
                     if (!empty($CFG->enrol_mailstudents)) {
                         $sendem[] = $order->id;