mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Changed log URLs for attempts ... the old one worked too but this is
better for consistency. Not much gets past Eloy "Eagle Eyes" Lafuente!
This commit is contained in:
parent
5794f89813
commit
71ca2a2a05
1 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@
|
||||||
|
|
||||||
if ($attempt = quiz_save_attempt($quiz, $questions, $result, $attemptnumber)) {
|
if ($attempt = quiz_save_attempt($quiz, $questions, $result, $attemptnumber)) {
|
||||||
add_to_log($course->id, "quiz", "submit",
|
add_to_log($course->id, "quiz", "submit",
|
||||||
"review.php?q=$quiz->id&attempt=$attempt->id", "$quiz->id", $cm->id);
|
"review.php?id=$cm->id&attempt=$attempt->id", "$quiz->id", $cm->id);
|
||||||
} else {
|
} else {
|
||||||
notice(get_string("alreadysubmitted", "quiz"), "view.php?id=$cm->id");
|
notice(get_string("alreadysubmitted", "quiz"), "view.php?id=$cm->id");
|
||||||
print_footer($course);
|
print_footer($course);
|
||||||
|
@ -170,7 +170,7 @@
|
||||||
if (!$unfinished = quiz_get_user_attempt_unfinished($quiz->id, $USER->id)) {
|
if (!$unfinished = quiz_get_user_attempt_unfinished($quiz->id, $USER->id)) {
|
||||||
if ($newattemptid = quiz_start_attempt($quiz->id, $USER->id, $attemptnumber)) {
|
if ($newattemptid = quiz_start_attempt($quiz->id, $USER->id, $attemptnumber)) {
|
||||||
add_to_log($course->id, "quiz", "attempt",
|
add_to_log($course->id, "quiz", "attempt",
|
||||||
"review.php?q=$quiz->id&attempt=$newattemptid", "$quiz->id", $cm->id);
|
"review.php?id=$cm->id&attempt=$newattemptid", "$quiz->id", $cm->id);
|
||||||
} else {
|
} else {
|
||||||
error("Sorry! Could not start the quiz (could not save starting time)");
|
error("Sorry! Could not start the quiz (could not save starting time)");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue