tjhunt [Tue, 4 Nov 2008 10:49:31 +0000 (10:49 +0000)]
user preferences: MDL-17123 cope correctly with multiple sessions.
This steals the logic from accesslib used to detect dirty contexts and so reload cached access data when permissions are changed.
Here, we track when user preferences are changed, so that if necessary we can trigger a reaload. This helps in two situations:
1. When you are logged into Moodle with two different browsers.
2. When someone else changes one of your preferences.
After this change, you will see the changed user pref immediately in all sessions.
This adds one cheap DB query to any page that tries to access a user preference (which is almost all of them, because of deciding whether to show the messaging pop-up). It adds a few more queries in the cases when a user preference is changed. This is in the name of correctness.
tjhunt [Tue, 4 Nov 2008 07:22:23 +0000 (07:22 +0000)]
weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference - minor layout improvements for IE.
tjhunt [Mon, 3 Nov 2008 06:06:08 +0000 (06:06 +0000)]
user selection: MDL-17072 Polishing the role assign page:
* Make the role being assigned clear in the title
* Make the options in the middle of the page be in a collapsable options section, collapsed by default.
* Put them in a smaller font too.
* Switch the date selectors here to use a shorter date format, and change 'Course start date' to 'Course start'.
tjhunt [Mon, 3 Nov 2008 06:04:41 +0000 (06:04 +0000)]
weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference - improve the images by giving them a transparent background.
tjhunt [Mon, 3 Nov 2008 05:27:10 +0000 (05:27 +0000)]
weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference - I forgot the PHP docs before.
tjhunt [Mon, 3 Nov 2008 05:03:00 +0000 (05:03 +0000)]
user selector: MDL-16996- followup - change optgroup label escaping funciton to keep Nicolas Martignoni happy. I can's say I full understand this issue.
stronk7 [Sat, 1 Nov 2008 00:30:55 +0000 (00:30 +0000)]
MDL-14952 - roles: 'moodle/legacy:guest' was preventing admins to post
new discussions in fron page if $CFG->defaultfrontpageroleid = guest. Merged from 19_STABLE
mudrd8mz [Fri, 31 Oct 2008 21:11:46 +0000 (21:11 +0000)]
MDL-17094 Allow translators to disable automatic language update during Moodle upgrade.
One needs just add $CFG->skiplangupgrade = true; to their config.php and keep their language pack up-to-date manually. This is intended for lang pack maintainers with CVS access only.
This is backpported from MOODLE_19_STABLE admin/index.php
nicolasconnault [Fri, 31 Oct 2008 15:33:45 +0000 (15:33 +0000)]
MDL-17091 Adding part of GoogleData API from the Zend Framework, in order to support portfolio and repository functions. Also completed basic portfolio plugin.
jamiesensei [Fri, 31 Oct 2008 04:52:29 +0000 (04:52 +0000)]
MDL-15736 "deleting regrade report. Regrade functionality is now part of overview report" putting quiz_regrade.php back into HEAD since lang files from HEAD are downloaded to use on older versions of Moodle, should not delete obsolete lang files.
tjhunt [Thu, 30 Oct 2008 10:49:15 +0000 (10:49 +0000)]
user selection: MDL-16993 Convert the assign roles page to use the new components.
At the same time, I took the opportunity to try to work on some of the usability issues on this page. Note that I have not quite finished! So don't comment until tomorrow.
In the course of doing this, I also did: half of
MDL-11529 Show the number of assignees of each role in the change role dropdown on this page.
MDL-17067 Make it clear in the UI that admins are not allowed to unassign themselves.
tjhunt [Thu, 30 Oct 2008 06:26:18 +0000 (06:26 +0000)]
roles admin: Improve the usability of the assign roles interface - this is the first half of the work. Part of MDL-16993.
To do this, I found a way to clean up the method signatures of a couple of accesslib methods, so I did, hence the fact that this seems to touch some unrelated files.
Also, there is a nice new method in accesslib get_context_url, which gives you the natural URL for a context, so the course view page, or the user profile, etc.
jamiesensei [Wed, 29 Oct 2008 10:00:44 +0000 (10:00 +0000)]
MDL-14209 "quiz stats report:Seperation of functionality and unit tests for calculations" Seperating out call for processing actual student responses from calculation of other grade stats as I want to unit test the grade stats calculations.
jerome [Wed, 29 Oct 2008 08:20:12 +0000 (08:20 +0000)]
MDL-15351: the plugin didn't retrieve any file. The problem was cause by the curl download function that can not have session => now we deal with fileinfo parameters, not the file url.
tjhunt [Wed, 29 Oct 2008 04:40:34 +0000 (04:40 +0000)]
user selection: MDL-17054 Improve the user selector used on the assign roles and group memebers pages - fire an event when the selection becomes empty/not-empty.