mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Add coursemodule info to logs for attempts and submits
This commit is contained in:
parent
53c02cbe53
commit
b44b3a9f29
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
/// Check to see if they are submitting answers
|
/// Check to see if they are submitting answers
|
||||||
if ($rawanswers = data_submitted()) {
|
if ($rawanswers = data_submitted()) {
|
||||||
add_to_log($course->id, "quiz", "submit", "attempt.php?id=$cm->id", "$quiz->id");
|
add_to_log($course->id, "quiz", "submit", "attempt.php?id=$cm->id", "$quiz->id", $cm->id);
|
||||||
|
|
||||||
$rawanswers = (array)$rawanswers;
|
$rawanswers = (array)$rawanswers;
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
add_to_log($course->id, "quiz", "attempt", "attempt.php?id=$cm->id", "$quiz->id");
|
add_to_log($course->id, "quiz", "attempt", "attempt.php?id=$cm->id", "$quiz->id", $cm->id);
|
||||||
|
|
||||||
/// Print the quiz page
|
/// Print the quiz page
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue