]> git.mjollnir.org Git - moodle.git/commitdiff
[multienrol]Renamed "internal" enrolment plugin to "manual"
authormartinlanghoff <martinlanghoff>
Thu, 9 Mar 2006 03:19:10 +0000 (03:19 +0000)
committermartinlanghoff <martinlanghoff>
Thu, 9 Mar 2006 03:19:10 +0000 (03:19 +0000)
enrol/manual/enrol.html [moved from enrol/internal/enrol.html with 100% similarity]
enrol/manual/enrol.php [moved from enrol/internal/enrol.php with 98% similarity]
enrol/paypal/enrol.php
lib/setup.php

similarity index 98%
rename from enrol/internal/enrol.php
rename to enrol/manual/enrol.php
index 9ebbfbb28c67ee306c92455b87873c19d24c822d..07afeea192229de6de839260b0d2e92499913012 100644 (file)
 
 
 /**
-* enrolment_plugin_internal is the default enrolment plugin
+* enrolment_plugin_manual is the default enrolment plugin
 *
 * This class provides all the functionality for an enrolment plugin
-* In fact it includes all the code for the default, "internal" method
+* In fact it includes all the code for the default, "manual" method
 * so that other plugins can override these as necessary.
 */
 
-class enrolment_plugin_internal {
+class enrolment_plugin_manual {
 
 var $errormsg;
 
@@ -186,7 +186,7 @@ function print_entry($course) {
 
     print_course($course, "80%");
 
-    include("$CFG->dirroot/enrol/internal/enrol.html");
+    include("$CFG->dirroot/enrol/manual/enrol.html");
 
     print_footer();
 
index 9470f03b76130ed3386df0c33e1709fb4a4f947c..64908c74f10e214a726598f2ebd9f432ae948d1f 100644 (file)
@@ -29,8 +29,8 @@ function print_entry($course) {
 
     if (abs($cost) < 0.01) { // no cost, default to base class entry to course
 
-        $internal = enrolment_factory::factory('internal');
-        $internal->print_entry($course);
+        $manual = enrolment_factory::factory('manual');
+        $manual->print_entry($course);
 
     } else {
 
@@ -59,7 +59,7 @@ function print_entry($course) {
 
         if ($course->password) {  // Second option
             $password = '';
-            include($CFG->dirroot.'/enrol/internal/enrol.html');
+            include($CFG->dirroot.'/enrol/manual/enrol.html');
         }
 
         print_footer();
@@ -83,8 +83,8 @@ function get_access_icons($course) {
     }
 
     if (abs($cost) < 0.01) {
-        $internal = enrolment_factory::factory('internal');
-        $str = $internal->get_access_icons($course);
+        $manual = enrolment_factory::factory('manual');
+        $str = $manual->get_access_icons($course);
 
     } else {
     
index 829624168af43b2739281f088416e5bd86ad9586..11f223bc52f08565a17b403a785deb1791c126c6 100644 (file)
@@ -203,7 +203,7 @@ global $HTTPSPAGEREQUIRED;
 
 /// Set a default enrolment configuration (see bug 1598)
     if (!isset($CFG->enrol)) {
-        $CFG->enrol = 'internal';
+        $CFG->enrol = 'manual';
     }
 
 /// File permissions on created directories in the $CFG->dataroot