Various small fixes across all modules. Most notable was the revised

use of add_to_log, and the new logging format.
This commit is contained in:
martin
2002-05-31 09:07:11 +00:00
parent d78e2e84ff
commit 5eb45fa058
20 changed files with 24 additions and 284 deletions
+3 -3
View File
@@ -35,16 +35,16 @@
if (! update_record("journal_entries", $newentry)) {
error("Could not update your journal");
}
add_to_log("Update journal: $journal->name", $course->id);
add_to_log($course->id, "journal", "update entry", "view.php?id=$cm->id", "$newentry->id");
} else {
$newentry->user = $USER->id;
$newentry->journal = $journal->id;
$newentry->modified = $timenow;
$newentry->text = $text;
if (! insert_record("journal_entries", $newentry)) {
if (! $newentry->id = insert_record("journal_entries", $newentry)) {
error("Could not insert a new journal entry");
}
add_to_log("Add journal: $journal->name", $course->id);
add_to_log($course->id, "journal", "add entry", "view.php?id=$cm->id", "$newentry->id");
}
redirect("view.php?id=$cm->id");