Added missing cmid parameter when calling add_to_log() function

for report and review actions :-)
This commit is contained in:
stronk7
2004-02-16 20:22:32 +00:00
parent 8f583218df
commit eaefa1c0e8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@
error("You are not allowed to use this script");
}
add_to_log($course->id, "quiz", "report", "report.php?id=$cm->id", "$quiz->id");
add_to_log($course->id, "quiz", "report", "report.php?id=$cm->id", "$quiz->id", "$cm->id");
/// Print the page header
if (empty($noheader)) {
+1 -1
View File
@@ -54,7 +54,7 @@
}
}
add_to_log($course->id, "quiz", "review", "review.php?id=$cm->id&attempt=$attempt->id", "$quiz->id");
add_to_log($course->id, "quiz", "review", "review.php?id=$cm->id&attempt=$attempt->id", "$quiz->id", "$cm->id");
// Print the page header