Fix for bug 4127:
In the course participants page, selecting an initials filter in one course
and then moving to another (the filter would propagate) could result in few
or no results being displayed. The teacher would then have no way of
resetting the filter and viewing all (or possibly any) participants.
Fixed by making each course participant page independent. They no longer
share sort orders, collapsed column state, or initials filters.
Converted the students table to use the new table class
Fixed bug 3114: when sorting by country, prepend country code to the country name
Fixed behavior of autohiding teacher list; now there is a hide/show icon to be
consistent with the rest of Moodle
Fixed "show all" option so that the user can control it instead of relying on auto behavior
Fixed HTML, removed all inline styles
Improved accessibility (alt tags for images)
Updated obsolete optional_variable calls to optional_param
Several cosmetic and other improvements I 've already forgotten :P
Made isteacher() require that the first parameter (course id) be
specified and non-empty. If it is empty, [i.e., 0, which was used to
simulate what has now become isteacherinanycourse()], then the return
value IS correct but a warning is printed on screen. This should allow
us to track down any such calls in legacy modules without breaking Moodle.
The correct way to check for teacher status in ANY course is now to
call isteacherinanycourse().
Hidden teachers are not shown anymore in the less detailed participants view.
PS1: Can you believe I didn't know you could hide a teacher? :o
PS2: I just _LOVE_ using lambda functions! It's soooooooo very cool it makes
me think I may be programming in the wrong language! :P
1. Added a dropdown box at the top right which allows you to manually choose
the display mode for the user lists.
2. Fixed the bug where "Show all X users" was displayed when it shouldn't.
3. Merged the latest changes from the MOODLE_14_STABLE branch. This wasn't
done before and it gave me the creeps. All changes seem to be good, so
I hope I didn't checkin anything dangerous.
Will synchronize the MERGED tag on the branch, too.
for recording the last access to the COURSE.
This is updated at the same time as add_to_log and is now used instead
of user->lastaccess when course user listings are required.
This means course listings now show what you expect and open up the way
for a "current users" listing and instant messaging etc ...