mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-10759 - Bogus get_context_instance call in quiz_print_recent_mod_activity. Merged from MOODLE_17_STABLE.
This commit is contained in:
parent
a41e328736
commit
f5e9cb1e9c
@ -537,7 +537,7 @@ function quiz_print_recent_mod_activity($activity, $course, $detail=false) {
|
||||
|
||||
}
|
||||
|
||||
if (has_capability('mod/quiz:grade', get_context_instance(CONTEXT_MODULE, $course))) {
|
||||
if (has_capability('mod/quiz:grade', get_context_instance(CONTEXT_MODULE, $activity->instance))) {
|
||||
$grades = "(" . $activity->content->sumgrades . " / " . $activity->content->maxgrade . ") ";
|
||||
echo "<a href=\"$CFG->wwwroot/mod/quiz/review.php?q="
|
||||
. $activity->instance . "&attempt="
|
||||
|
Loading…
x
Reference in New Issue
Block a user