diff --git a/lib.php b/lib.php index eabf781..e1bc832 100644 --- a/lib.php +++ b/lib.php @@ -187,7 +187,7 @@ function attforblock_user_complete($course, $user, $mod, $attforblock) { // if (! $cm = get_coursemodule_from_instance("attforblock", $attforblock->id, $course->id)) { // error("Course Module ID was incorrect"); // } - print_user_attendaces($user, $mod, $course); + print_user_attendaces($user, $mod, $attforblock, $course); } //return true; diff --git a/locallib.php b/locallib.php index 817e1d5..f452ab0 100644 --- a/locallib.php +++ b/locallib.php @@ -197,11 +197,9 @@ function print_row($left, $right) { echo "\n
'; $complete = get_attendance($user->id, $nextcourse); if($complete) { - print_attendance_table($user, $nextcourse); + print_attendance_table($user, $nextcourse, $attforblock); } else { echo get_string('attendancenotstarted','attforblock'); } diff --git a/view.php b/view.php index 3393fbe..f3bfeec 100644 --- a/view.php +++ b/view.php @@ -78,10 +78,10 @@ if ($printing) { if ($mode === 'thiscourse') { print_header('', $course->fullname.' - '.get_string('attendancereport','attforblock')); - print_user_attendaces($user, $cm, $course, 'printing'); + print_user_attendaces($user, $cm, $attforblock, $course, 'printing'); } else { print_header('', get_string('attendancereport','attforblock')); - print_user_attendaces($user, $cm, 0, 'printing'); + print_user_attendaces($user, $cm, $attforblock, 0, 'printing'); } exit(); } @@ -108,9 +108,9 @@ print_tabs(array($toprow), $currenttab); if ($mode === 'thiscourse') { - print_user_attendaces($user, $cm, $course); + print_user_attendaces($user, $cm, $attforblock, $course); } else { - print_user_attendaces($user, $cm); + print_user_attendaces($user, $cm, $attforblock); } print_footer($course); |