]> git.mjollnir.org Git - moodle.git/commitdiff
Changed log URLs for attempts ... the old one worked too but this is
authormoodler <moodler>
Wed, 18 Feb 2004 02:24:29 +0000 (02:24 +0000)
committermoodler <moodler>
Wed, 18 Feb 2004 02:24:29 +0000 (02:24 +0000)
better for consistency.

Not much gets past Eloy "Eagle Eyes" Lafuente!

mod/quiz/attempt.php

index 959460e33d631d0820c02ff156ca663a4b7f6953..b42e0ef4e91f93a939035ceb2c33d735eede9b31 100644 (file)
 
         if ($attempt = quiz_save_attempt($quiz, $questions, $result, $attemptnumber)) {
             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 {
             notice(get_string("alreadysubmitted", "quiz"), "view.php?id=$cm->id");
             print_footer($course);
     if (!$unfinished = quiz_get_user_attempt_unfinished($quiz->id, $USER->id)) {
         if ($newattemptid = quiz_start_attempt($quiz->id, $USER->id, $attemptnumber)) {
             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 {
             error("Sorry! Could not start the quiz (could not save starting time)");
         }