mirror of
https://github.com/moodle/moodle.git
synced 2025-06-02 06:05:31 +02:00
MDL-11991 Fixing error on undefined method while using the manual plug-in.
This commit is contained in:
parent
ab9ad21d0b
commit
5e983a9a2f
@ -125,6 +125,15 @@ function get_access_icons($course) {
|
||||
return $str;
|
||||
}
|
||||
|
||||
/**
|
||||
* This is needed, solely because we use the 'manual' plug-in to display course key.
|
||||
*/
|
||||
function print_enrolmentkeyfrom($course) {
|
||||
global $CFG;
|
||||
|
||||
require_once($CFG->dirroot.'/enrol/manual/enrol.php');
|
||||
return enrolment_plugin_manual::print_enrolmentkeyfrom($course);
|
||||
}
|
||||
|
||||
/// Override the base class config_form() function
|
||||
function config_form($frm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user