From: ethem Date: Thu, 29 Jun 2006 15:03:54 +0000 (+0000) Subject: $teacher is used in manual form. No need global. merged from 16stable. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b1c87d90dcc1ffeedc78617e2aa1d7aacfa44996;p=moodle.git $teacher is used in manual form. No need global. merged from 16stable. --- diff --git a/enrol/authorize/enrol.php b/enrol/authorize/enrol.php index 8382dd923f..0eb9a38ac6 100755 --- a/enrol/authorize/enrol.php +++ b/enrol/authorize/enrol.php @@ -112,7 +112,6 @@ class enrolment_plugin_authorize } } - $teacher = get_teacher($course->id); $strcourses = get_string('courses'); $strloginto = get_string('loginto', '', $course->shortname); $zerocost = $this->zero_cost($course); @@ -142,6 +141,7 @@ class enrolment_plugin_authorize if ($course->password) { $password = ''; + $teacher = get_teacher($course->id); include($CFG->dirroot.'/enrol/manual/enrol.html'); }