Skip to content

Commit

Permalink
MDL-11991 Fixing error on undefined method while using the manual plu…
Browse files Browse the repository at this point in the history
…g-in.
  • Loading branch information
mchurch committed Nov 13, 2007
1 parent c58364c commit 58e84d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions enrol/paypal/enrol.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ function get_access_icons($course) {
return $str; 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 /// Override the base class config_form() function
function config_form($frm) { function config_form($frm) {
Expand Down

0 comments on commit 58e84d7

Please sign in to comment.