]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11991 Fixing error on undefined method while using the manual plug-in.
authormchurch <mchurch>
Tue, 13 Nov 2007 18:07:23 +0000 (18:07 +0000)
committermchurch <mchurch>
Tue, 13 Nov 2007 18:07:23 +0000 (18:07 +0000)
enrol/paypal/enrol.php

index 806fd90b2b339cdf190a796806f21d9412778451..2e189b3240ebb97bc71bcaf4b4bbb44eab176630 100644 (file)
@@ -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) {