Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated to use new logging format.

  • Loading branch information...
commit da3a08d7eeecb7ed1fdde835ca0d1bccc39e17a6 1 parent 9d99fef
martin authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  user/edit.php
  2. +1 −1  user/index.php
  3. +1 −1  user/view.php
View
2  user/edit.php
@@ -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)");
View
2  user/index.php
@@ -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",
View
2  user/view.php
@@ -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",
Please sign in to comment.
Something went wrong with that request. Please try again.