diff --git a/mod/hotpot/review.php b/mod/hotpot/review.php index 30e03fed319..eda02432177 100644 --- a/mod/hotpot/review.php +++ b/mod/hotpot/review.php @@ -59,7 +59,7 @@ print '
'; // for overlib print_heading($hotpot->name); hotpot_print_attempt_summary($hotpot, $attempt); - hotpot_print_review_buttons($course, $hotpot, $attempt); + hotpot_print_review_buttons($course, $hotpot, $attempt, $context); $action = has_capability('mod/hotpot:viewreport',$context) ? optional_param('action') : ''; if ($action) { $xml = get_field('hotpot_details', 'details', 'attempt', $attempt->id); @@ -81,7 +81,7 @@ } else { hotpot_print_attempt_details($hotpot, $attempt); } - hotpot_print_review_buttons($course, $hotpot, $attempt); + hotpot_print_review_buttons($course, $hotpot, $attempt, $context); print_footer($course); /////////////////////////// // functions @@ -128,7 +128,7 @@ function hotpot_print_attempt_summary(&$hotpot, &$attempt) { print ''; print_simple_box_end(); } -function hotpot_print_review_buttons(&$course, &$hotpot, &$attempt) { +function hotpot_print_review_buttons(&$course, &$hotpot, &$attempt, $context) { print "\n".''; print_single_button("report.php?hp=$hotpot->id", NULL, get_string('continue'), 'post'); |