]> git.mjollnir.org Git - moodle.git/commitdiff
Added cmid to some add_to_log() function calls.
authorstronk7 <stronk7>
Wed, 18 Feb 2004 20:02:33 +0000 (20:02 +0000)
committerstronk7 <stronk7>
Wed, 18 Feb 2004 20:02:33 +0000 (20:02 +0000)
Needed to be able to restore logs properly. :-)

mod/glossary/editcategories.php

index c6b015211c87fa922576fb4953a8ae45b6db0744..6cd641ca3de79814cde2548b9f68a53b14eb1d09 100644 (file)
@@ -34,7 +34,7 @@
         error("You must be a teacher to use this page.");
      }
 
-//    add_to_log($course->id, "glossary", "edit categories", "view.php?id=$cm->id", "$glossary->id");
+//    add_to_log($course->id, "glossary", "edit categories", "view.php?id=$cm->id", "$glossary->id", $cm->id);
 
     if ($course->category) {
         $navigation = "<A HREF=\"../../course/view.php?id=$course->id\">$course->shortname</A> ->";
@@ -62,7 +62,7 @@
                                    error("Weird error. The category was not updated.");
                                    redirect("editcategories.php?id=$cm->id");
                     } else {
-                        add_to_log($course->id, "glossary", "edit category", "editcategories.php?id=$cm->id", $hook);
+                        add_to_log($course->id, "glossary", "edit category", "editcategories.php?id=$cm->id", $hook,$cm->id);
                     }
                } else {
                     echo "<p align=\"center\">" . get_string("edit"). " " . get_string("category","glossary") . "<font size=\"3\">";
@@ -86,7 +86,7 @@
                                
                                print_footer($course);
 
-                    add_to_log($course->id, "glossary", "delete category", "editcategories.php?id=$cm->id", $hook);
+                    add_to_log($course->id, "glossary", "delete category", "editcategories.php?id=$cm->id", $hook,$cm->id);
                     
                            redirect("editcategories.php?id=$cm->id");
                } else {
                                
                                    redirect("editcategories.php?id=$cm->id");
                     } else {
-                        add_to_log($course->id, "glossary", "add category", "editcategories.php?id=$cm->id", $cat->id);
+                        add_to_log($course->id, "glossary", "add category", "editcategories.php?id=$cm->id", $cat->id,$cm->id);
                     }
              }
           } else {