mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-12675 - Give teachers a direct link from the quiz index page to the results.
This commit is contained in:
parent
3cea9c554a
commit
c5f1ff788d
@ -104,7 +104,12 @@
|
||||
if ($showing == 'stats') {
|
||||
// The $quiz objects returned by get_all_instances_in_course have the necessary $cm
|
||||
// fields set to make the following call work.
|
||||
$data[] = quiz_num_attempt_summary($quiz, $quiz);
|
||||
$attemptcount = quiz_num_attempt_summary($quiz, $quiz);
|
||||
if ($attemptcount) {
|
||||
$data[] = "<a$class href=\"report.php?id=$quiz->coursemodule\">$attemptcount</a>";
|
||||
} else {
|
||||
$data[] = '';
|
||||
}
|
||||
} else if ($showing = 'scores') {
|
||||
|
||||
// Grade and feedback.
|
||||
|
Loading…
x
Reference in New Issue
Block a user