]> git.mjollnir.org Git - moodle.git/commitdiff
Updated to use new logging format.
authormartin <martin>
Fri, 31 May 2002 09:15:36 +0000 (09:15 +0000)
committermartin <martin>
Fri, 31 May 2002 09:15:36 +0000 (09:15 +0000)
user/edit.php
user/index.php
user/view.php

index 8080252a32b440f27a2115aa9d7f500bc7a97e1d..8133d7f3cba7427b97d3bc2a878dbceecf4a318b 100644 (file)
             $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)");
index 20201aac1bf189bc49bcc1263a53b0da39a363ed..acc51b86121e9335e49ca15070a901bd930b6c98 100644 (file)
@@ -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",
index 8dd7855d5fc16064edbb87a08a42270135e29575..e908c15ea08e68adb3d2bafe83c941658cda38fd 100644 (file)
@@ -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",