Added missing cmid parameter when calling add_to_log() function
for report and review actions :-)
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user