]> git.mjollnir.org Git - moodle.git/commitdiff
Added missing cmid parameter when calling add_to_log() function
authorstronk7 <stronk7>
Mon, 16 Feb 2004 20:22:32 +0000 (20:22 +0000)
committerstronk7 <stronk7>
Mon, 16 Feb 2004 20:22:32 +0000 (20:22 +0000)
for report and review actions :-)

mod/quiz/report.php
mod/quiz/review.php

index 2a97cfa1188f66c0f3ed4682b5d3b4ec6a4e3930..68ee8d3f195995ad1239869bc35cdd626b90f4c5 100644 (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)) {
index 60084f7bdc051e7aec14c99587d929331e202761..2f7a7628b366389a9fdae54652a303479a0b88bc 100644 (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