Skip to content

Commit

Permalink
enrolment plugins: MDL-21337 Missing global $OUTPUT variable in some …
Browse files Browse the repository at this point in the history
…enrolment plugins configuration page
  • Loading branch information
iarenaza committed Jan 13, 2010
1 parent f1483df commit 7a9f7d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion enrol/database/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion enrol/imsenterprise/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion enrol/ldap/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion enrol/manual/enrol.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 7a9f7d6

Please sign in to comment.