Changes throughout Moodle to remove any reserved words from the
Moodle tables. ie user -> userid in many tables, plus in user_students start -> starttime and end -> endtime I've just done all this as carefully as I could ... I don't think I missed anything but it's pretty intensive work and I'd be fooling myself if I didn't think I'd missed a couple. Note that this version should pretty much be able to bootstrap itself using PostgreSQL now ... but this is untested
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
error("Course module is incorrect");
|
||||
}
|
||||
|
||||
$entry = get_record("journal_entries", "user", $USER->id, "journal", $journal->id);
|
||||
$entry = get_record("journal_entries", "userid", $USER->id, "journal", $journal->id);
|
||||
|
||||
|
||||
/// If data submitted, then process and store.
|
||||
@@ -43,7 +43,7 @@
|
||||
}
|
||||
add_to_log($course->id, "journal", "update entry", "view.php?id=$cm->id", "$newentry->id");
|
||||
} else {
|
||||
$newentry->user = $USER->id;
|
||||
$newentry->userid = $USER->id;
|
||||
$newentry->journal = $journal->id;
|
||||
$newentry->modified = $timenow;
|
||||
$newentry->text = $text;
|
||||
|
||||
Reference in New Issue
Block a user