From 7a9f7d6c8a5f90aad37a57a63596bc1ccb46fd00 Mon Sep 17 00:00:00 2001 From: Inaki Date: Wed, 13 Jan 2010 22:16:01 +0000 Subject: [PATCH] enrolment plugins: MDL-21337 Missing global $OUTPUT variable in some enrolment plugins configuration page --- enrol/database/enrol.php | 2 +- enrol/imsenterprise/enrol.php | 2 +- enrol/ldap/enrol.php | 2 +- enrol/manual/enrol.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/enrol/database/enrol.php b/enrol/database/enrol.php index 657b1e159fd4d..55f1099e3e479 100644 --- a/enrol/database/enrol.php +++ b/enrol/database/enrol.php @@ -434,7 +434,7 @@ function get_access_icons($course) { /// Overide the base config_form() function function config_form($frm) { - global $CFG; + global $CFG, $OUTPUT; $vars = array('enrol_dbhost', 'enrol_dbuser', 'enrol_dbpass', 'enrol_dbname', 'enrol_dbtable', diff --git a/enrol/imsenterprise/enrol.php b/enrol/imsenterprise/enrol.php index 2f70acc50b58e..b3491b1de07d7 100644 --- a/enrol/imsenterprise/enrol.php +++ b/enrol/imsenterprise/enrol.php @@ -97,7 +97,7 @@ function determine_default_rolemapping($imscode) { /// Override the base config_form() function function config_form($frm) { - global $CFG, $imsroles; + global $CFG, $OUTPUT, $imsroles; $vars = array('enrol_imsfilelocation', 'enrol_logtolocation', 'enrol_createnewusers', 'enrol_fixcaseusernames', 'enrol_fixcasepersonalnames', 'enrol_truncatecoursecodes', 'enrol_createnewcourses', 'enrol_createnewcategories', 'enrol_createnewusers', 'enrol_mailadmins', diff --git a/enrol/ldap/enrol.php b/enrol/ldap/enrol.php index 9b9c56dc5627f..a4fa75dbdf9ee 100755 --- a/enrol/ldap/enrol.php +++ b/enrol/ldap/enrol.php @@ -314,7 +314,7 @@ function get_access_icons($course) { /// Overrise the base config_form() function function config_form($frm) { - global $CFG; + global $CFG, $OUTPUT; $this->check_legacy_config(); diff --git a/enrol/manual/enrol.php b/enrol/manual/enrol.php index a9caedcbdc339..4f209c079cfdc 100644 --- a/enrol/manual/enrol.php +++ b/enrol/manual/enrol.php @@ -215,7 +215,7 @@ function check_group_entry ($courseid, $password) { * @param frm an object containing all the data for this page */ function config_form($frm) { - global $CFG; + global $CFG, $OUTPUT; if (!isset( $frm->enrol_manual_keyholderrole )) { $frm->enrol_manual_keyholderrole = '';