Updated to use new logging format.
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@
|
||||
$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)");
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
|
||||
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",
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
|
||||
$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",
|
||||
|
||||
Reference in New Issue
Block a user