mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Fixed logs
This commit is contained in:
parent
60efe6cbb3
commit
c872bfb7b9
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user