Modified calls to add_to_log() function to include cmid at the end. It was missing

in "over allocatio" and "grade" logs.
This commit is contained in:
stronk7 2004-02-15 20:03:28 +00:00
parent d09ce61d1a
commit 7c11319ad7
2 changed files with 2 additions and 2 deletions

View File

@ -948,7 +948,7 @@
echo "<CENTRE><B>".get_string("savedok", "workshop")."</B></CENTRE><BR>\n";
add_to_log($course->id, "workshop", "grade",
"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id", "$assessment->id");
"assessments.php?action=viewassessment&id=$cm->id&aid=$assessment->id", "$assessment->id", "$cm->id");
}
switch ($form->stype) {
case "student" :

View File

@ -1410,7 +1410,7 @@
set_field("workshop", "overallocation", $form->overallocation, "id", $workshop->id);
echo "<p align=\"center\"><b>".get_string("overallocation", "workshop").": $form->overallocation</b></p>\n";
add_to_log($course->id, "workshop", "over allocation", "view.php?id=$cm->id", $form->overallocation);
add_to_log($course->id, "workshop", "over allocation", "view.php?id=$cm->id", $form->overallocation,$cm->id);
redirect("submissions.php?action=adminlist&id=$cm->id");
}