[multienrol]Renamed "internal" enrolment plugin to "manual"

This commit is contained in:
martinlanghoff
2006-03-09 03:19:10 +00:00
parent c02fdda12d
commit a51e2a7f3b
4 changed files with 10 additions and 10 deletions
@@ -24,14 +24,14 @@
/**
* 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();
+5 -5
View 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 {
+1 -1
View 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