mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
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:
parent
1f48942e7d
commit
ebc3bd2b24
68 changed files with 277 additions and 461 deletions
|
@ -142,7 +142,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
$users[$attempt->user] = $attempt->user;
|
||||
$users[$attempt->userid] = $attempt->userid;
|
||||
}
|
||||
|
||||
if ($users) {
|
||||
|
@ -169,14 +169,14 @@
|
|||
$table->width = array(10, "*", "*", 20);
|
||||
|
||||
foreach ($grades as $grade) {
|
||||
$picture = print_user_picture($grade->user, $course->id, $grade->picture, false, true);
|
||||
$picture = print_user_picture($grade->userid, $course->id, $grade->picture, false, true);
|
||||
|
||||
if ($attempts = quiz_get_user_attempts($quiz->id, $grade->user)) {
|
||||
if ($attempts = quiz_get_user_attempts($quiz->id, $grade->userid)) {
|
||||
$userattempts = quiz_get_user_attempts_string($quiz, $attempts, $grade->grade);
|
||||
}
|
||||
|
||||
$table->data[] = array ($picture,
|
||||
"<A HREF=\"$CFG->wwwroot/user/view.php?id=$grade->user&course=$course->id\">$grade->firstname $grade->lastname</A>",
|
||||
"<A HREF=\"$CFG->wwwroot/user/view.php?id=$grade->userid&course=$course->id\">$grade->firstname $grade->lastname</A>",
|
||||
"$userattempts", round($grade->grade,0));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue