]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed logs
authormoodler <moodler>
Mon, 16 Feb 2004 08:43:33 +0000 (08:43 +0000)
committermoodler <moodler>
Mon, 16 Feb 2004 08:43:33 +0000 (08:43 +0000)
mod/lesson/view.php

index 3c8fa41a03cb2a5e234b56f0361a7dc3cbfcf8b2..73c555078700980ea73d6fadc519caac2556e65b 100644 (file)
@@ -6,10 +6,10 @@
     require_once("../../config.php");
     require_once("lib.php");
 
-    require_variable($id);    // Course Module ID, or
+    require_variable($id);    // Course Module ID
 
     if (! $cm = get_record("course_modules", "id", $id)) {
-            error("Course Module ID was incorrect");
+        error("Course Module ID was incorrect");
     }
 
     if (! $course = get_record("course", "id", $cm->course)) {
@@ -22,7 +22,7 @@
 
     require_login($course->id);
 
-    add_to_log($course->id, "lesson", "view", "view.php?id=$cm->id", "$lesson->id");
+    add_to_log($course->id, "lesson", "view", "view.php?id=$cm->id", "$lesson->id", $cm->id);
 
 /// Print the page header