Browse Source

Fixed #32: regression after old renamings (thanks Davo Smith)

MOODLE_23_STABLE
Artem Andreev 12 years ago
parent
commit
fadcc9339c
  1. 4
      lib.php

4
lib.php

@ -226,8 +226,8 @@ function attforblock_user_outline($course, $user, $mod, $attforblock) {
$result->time = 0; $result->time = 0;
if (has_capability('mod/attforblock:canbelisted', $mod->context, $user->id)) { if (has_capability('mod/attforblock:canbelisted', $mod->context, $user->id)) {
$statuses = att_get_statuses($attforblock->id); $statuses = att_get_statuses($attforblock->id);
$grade = att_get_user_grade(get_user_statuses_stat($attforblock->id, $course->startdate, $user->id), $statuses); $grade = att_get_user_grade(att_get_user_statuses_stat($attforblock->id, $course->startdate, $user->id), $statuses);
$maxgrade = att_get_user_max_grade(get_user_taken_sessions_count($attforblock->id, $course->startdate, $user->id), $statuses); $maxgrade = att_get_user_max_grade(att_get_user_taken_sessions_count($attforblock->id, $course->startdate, $user->id), $statuses);
$result->info = $grade.' / '.$maxgrade; $result->info = $grade.' / '.$maxgrade;
} }

Loading…
Cancel
Save