Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-11991 Fixing error on undefined method while using the manual plu…

…g-in.
  • Loading branch information...
commit 58e84d7044bba43adc57b60033f409b9d949507b 1 parent c58364c
mchurch authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 enrol/paypal/enrol.php
View
9 enrol/paypal/enrol.php
@@ -124,6 +124,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) {
Please sign in to comment.
Something went wrong with that request. Please try again.