$usernew->timemodified = time();
if (update_record("user", $usernew)) {
- add_to_log("Updated own profile", $course->id);
+ add_to_log($course->id, "user", "update", "view.php?user=$user->id&course=$course->id", "");
redirect("view.php?id=$user->id&course=$course->id", "Changes saved");
} else {
error("Could not update the user record ($user->id)");
require_login($course->id);
- add_to_log("View list of all profiles", $course->id);
+ add_to_log($course->id, "user", "view all", "index.php?id=$course->id", "");
if ($course->category) {
print_header("$course->shortname: Participants", "$course->fullname",
$fullname = "$user->firstname $user->lastname";
- add_to_log("View profile: $fullname", $course);
+ add_to_log($course->id, "user", "view", "view.php?id=$user->id&course=$course->id", "$user->id");
if ($course->category) {
print_header("Personal profile: $fullname", "Personal profile: $fullname",