diff --git a/enrol/authorize/enrol.html b/enrol/authorize/enrol.html index 5dabac75443..5dcc2267e6d 100755 --- a/enrol/authorize/enrol.html +++ b/enrol/authorize/enrol.html @@ -1,5 +1,6 @@ prevent_double_paid($course); $formvars = array('password', 'ccaddress', 'cccity', 'ccstate', 'cccountry', 'cczip', 'ccfirstname', 'cclastname', 'cc', 'ccexpiremm', 'ccexpireyyyy', 'cctype', 'cvv'); diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index 0eb9a38ac67..e1c8d6a07b5 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -112,33 +112,35 @@ class enrolment_plugin_authorize } } + $zerocost = $this->zero_cost($course); + if ($zerocost) { + $manual = enrolment_factory::factory('manual'); + $manual->print_entry($course); + return; + } + $strcourses = get_string('courses'); $strloginto = get_string('loginto', '', $course->shortname); - $zerocost = $this->zero_cost($course); print_header($strloginto, $course->fullname, "wwwroot/course/\">$strcourses -> $strloginto"); print_course($course, '80%'); - if ($course->password && !$zerocost) { + if ($course->password) { print_heading(get_string('choosemethod', 'enrol_authorize'), 'center'); } - print_simple_box_start('center'); - if ($zerocost){ - echo '
'.get_string('nocostyet', 'enrol_authorize').'
'.get_string('paymentrequired').'
'; echo ''.get_string('cost').": $curcost[currency] $curcost[cost]".'
'; echo ''; echo '