From: stronk7 Date: Wed, 18 Feb 2004 20:02:33 +0000 (+0000) Subject: Added cmid to some add_to_log() function calls. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f43c695e1eb30a1797e5d2f55b7858d68978255a;p=moodle.git Added cmid to some add_to_log() function calls. Needed to be able to restore logs properly. :-) --- diff --git a/mod/glossary/editcategories.php b/mod/glossary/editcategories.php index c6b015211c..6cd641ca3d 100644 --- a/mod/glossary/editcategories.php +++ b/mod/glossary/editcategories.php @@ -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 = "id\">$course->shortname ->"; @@ -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 "

" . get_string("edit"). " " . get_string("category","glossary") . ""; @@ -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 { @@ -149,7 +149,7 @@ 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 {