Permalink
Browse files

Changes to support new logging format

  • Loading branch information...
martin
martin committed May 31, 2002
1 parent 2a9da9e commit b50b67e50b3e4209d4fde55c9e1ad86a578027a3
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/edit.php
View
@@ -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!");

0 comments on commit b50b67e

Please sign in to comment.