Browse Source

Remove unrequired global calls.

MOODLE_34_STABLE
Dan Marsden 8 years ago
parent
commit
b4024ad25c
  1. 2
      classes/structure.php
  2. 1
      renderer.php

2
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.

1
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);

Loading…
Cancel
Save