From b4024ad25c202a11ae1401990bb4c1460d514e50 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 15 Jun 2017 12:56:58 +1200 Subject: [PATCH] Remove unrequired global calls. --- classes/structure.php | 2 +- renderer.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/structure.php b/classes/structure.php index 5176f6c..f1bfe67 100644 --- a/classes/structure.php +++ b/classes/structure.php @@ -689,7 +689,7 @@ class mod_attendance_structure { * @return array */ public function get_users($groupid = 0, $page = 1) { - global $DB, $CFG; + global $DB; $fields = array('username' , 'idnumber' , 'institution' , 'department'); // Get user identity fields if required - doesn't return original $fields array. diff --git a/renderer.php b/renderer.php index 9e081f7..039e01c 100644 --- a/renderer.php +++ b/renderer.php @@ -479,7 +479,6 @@ class mod_attendance_renderer extends plugin_renderer_base { * @return string */ private function construct_take_controls(attendance_take_data $takedata) { - global $CFG; $controls = ''; $context = context_module::instance($takedata->cm->id);