From: martin Date: Fri, 31 May 2002 09:27:30 +0000 (+0000) Subject: Changes to support new logging format X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b50b67e50b3e4209d4fde55c9e1ad86a578027a3;p=moodle.git Changes to support new logging format --- diff --git a/course/edit.php b/course/edit.php index 3f4977f6e1..1589fb0f0e 100644 --- a/course/edit.php +++ b/course/edit.php @@ -42,7 +42,7 @@ if ($course) { if (update_record("course", $form)) { - add_to_log("Updated course settings", $course->id); + add_to_log($course->id, "course", "update", "edit.php?id=$id", ""); redirect("view.php?id=$course->id", "Changes saved"); } else { error("Serious Error! Could not update the course record! (id = $form->id)"); @@ -54,7 +54,7 @@ $week->timemodified = time(); $week->id = insert_record("course_weeks", $week); - add_to_log("Inserted a new course # $newid", $newid); + add_to_log($newid, "course", "new", "view.php?id=$newid", ""); redirect("$CFG->wwwroot/admin/teacher.php?id=$newid", "Changes saved"); } else { error("Serious Error! Could not create the new course!");