From 8389613abbf711bae47be0fe545ff0a1e770baa7 Mon Sep 17 00:00:00 2001 From: ethem Date: Thu, 29 Jun 2006 11:27:32 +0000 Subject: [PATCH] Don't show choose method string if course cost is 0. Merged from 16stable. --- enrol/authorize/enrol.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index 2d633fe7db..2699ad2048 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -86,17 +86,18 @@ class enrolment_plugin_authorize $teacher = get_teacher($course->id); $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) { + if ($course->password && !$zerocost) { print_heading(get_string('choosemethod', 'enrol_authorize'), 'center'); } print_simple_box_start('center'); - if ($this->zero_cost($course)){ - echo '

'.get_string('nocostyet', 'enrol_authorize').'

'; + if ($zerocost){ + echo '

'.get_string('nocostyet', 'enrol_authorize').'

'; } else if (isguest()) { $curcost = $this->get_course_cost($course); echo '

'.get_string('paymentrequired').'

'; -- 2.39.5