tjhunt
2660377f72
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.
2008-11-04 10:49:31 +00:00
tjhunt
c9f8e118c9
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'.
2008-11-03 06:06:08 +00:00
dongsheng
aa19998a72
"MDL-16954, use rebert\'s patch to clean notice/warning in cron job via php cli, merged from 1.9"
2008-11-03 05:25:30 +00:00
tjhunt
f2eb500238
weblib: MDL-17085 a function to print a collapsible region of the UI, with the collapsed state stored in a user_perference.
2008-11-03 05:04:23 +00:00
tjhunt
bd1884fe6b
ajax: MDL-17084 provide a way for JavaScript to update user preferences.
2008-10-31 08:25:19 +00:00
jamiesensei
ba1ff79a76
MDL-17000 "telling get_list_of_plugins() to ignore simpletest directories" added simpletest to the list of dirs to ignore.
2008-10-24 15:17:45 +00:00
tjhunt
6ff2be37f5
moodlelib iprange checks: MDL-16986 If the user makes a mistake and types something like 172.16.1.143/148, with something greater than 32 after the slash, treat it as /32.
2008-10-24 02:53:51 +00:00
fmarier
ecc3137831
moodlelib/welcome message: MDL-16947 (merge from 1.9)
2008-10-22 02:35:24 +00:00
poltawski
db53480058
MDL-16428 - fix typo
2008-10-09 13:00:48 +00:00
tjhunt
7a1f5e932a
MDL-16706 - eliminate miscellaneous inine JavaScript
...
A few easy files in lib.
2008-09-26 11:24:52 +00:00
scyrma
1337d29583
MDL-16700: Making the password policy be applied all at once. (merge from 1.9)
...
Also, any policy letting a user use password "password" is not worth using, so removing this check.
2008-09-26 08:09:47 +00:00
skodak
d63339082a
MDL-16554 no striplashes in HEAD anymore
2008-09-23 20:51:47 +00:00
skodak
5fc9760399
MDL-16626 simplified editor selection, going to change it a bit more later
2008-09-23 15:19:21 +00:00
skodak
09af05ba19
MDL-16629 removed legacy unfinished multiple editors code
2008-09-23 14:34:58 +00:00
tjhunt
3a4f0a34f5
MDL-13894 Impoved fix with less duplicated code, no notices displayed before you get to the 'New settings' screen, and named constants instead of magic numbers.
2008-09-23 05:18:42 +00:00
jamiesensei
9db3992a65
MDL-16606 "userdate inserts a space in front of date when chopping off the leading 0 on day of the month produced by %d"
...
extra space was used in front of %d so that we can detect the difference between a leading 0 and something like 10, 20, or 30. The extra space was removed along with any leading 0 but not if there was no leading zero.
Now removing extra space even if there is no leading zero.
Now applying fix to conditional branch for when using a time offset from GMT instead of server time.
2008-09-22 10:32:28 +00:00
jamiesensei
3e95343a88
MDL-16606 "userdate inserts a space in front of date when chopping off the leading 0 on day of the month produced by %d"
...
extra space was used in front of %d so that we can detect the difference between a leading 0 and something like 10, 20, or 30. The extra space was removed along with any leading 0 but not if there was no leading zero.
Now removing extra space even if there is no leading zero.
2008-09-22 10:26:44 +00:00
dongsheng
70fa4b2963
"MDL-16554, strip slashes in email, checkin the patch"
2008-09-22 03:21:39 +00:00
nicolasconnault
137a3498fe
MDL-13894 Fixing mistyped cfg var
2008-09-18 10:24:52 +00:00
scyrma
62ea712f60
MDL-13894: saving a better source IP, following what the admin wants. (merge from 1.9)
2008-09-18 08:18:58 +00:00
skodak
9c98b43986
MDL-16468 never mail deleted users; merged from MOODLE_19_STABLE
2008-09-11 19:54:39 +00:00
tjhunt
4b600aa005
MDL-16410 Implement the delete question type functionality on the question type administration screen.
2008-09-11 11:01:20 +00:00
tjhunt
ad944e7832
MDL-16343 New PARAM_ type, PARAM_CAPABILITY.
2008-09-08 07:00:49 +00:00
tjhunt
a905364a0a
MDL-16029 Deprecate $extralocation parameter of get_string.
2008-09-03 06:02:38 +00:00
tjhunt
1cc6b5162c
MDL-15655 - address_in_subnet does not work on 64 bit architectures. Also, we found some other issues with this funtion while diagnosing the problem.
2008-09-01 04:17:11 +00:00
tjhunt
94a6d656a6
MDL-8475 - Better handling of blank answer - further changes to make it even more robust. Also, make the same changes to the shortanswer question type that were already made to the numerical question type.
2008-08-28 01:48:43 +00:00
skodak
61fceb866d
MDL-16234 defaults support in plugin_supports()
2008-08-27 20:22:33 +00:00
iarenaza
5261baf11e
MDL-16061 Revert incorrect fix for "Remove 'username' from the $moodleattributes array"
...
Merged from MOODLE_18_STABLE.
The fix is wrong, as it breaks auth_db_sync_users.php and
auth_ldap_sync_users.php at least. No new users are added to Moodle, as the
username is missing from the new user info record.
The fix needs to go into update_user_record() in lib/moodlelib.php to make it
skip the 'username' key, as we really need get_userinfo() to return the
username as part of the user info array.
2008-08-25 22:44:45 +00:00
tjhunt
13daf6a2d6
* Fix where quiz report lang strings are searched for. The correct prefix for this type of plugin is quiz_.
...
* Fix a misleading comment.
* Improve a bit of code in get_config by using get_records_menu.
2008-08-22 07:12:27 +00:00
peterbulmer
baed22bb1c
MNET-12558 Additional commenting and variable name change
2008-08-20 05:57:06 +00:00
skodak
775f811a66
MDL-16002 rewritten upgrade locking and better upgrade progress tracking; MDL-16070 Do not use $a[0] syntax in lang packs + various other upgrade improvements and fixes
2008-08-16 12:16:01 +00:00
peterbulmer
809e0a7599
MDL-16021 dont force mnethost restriction forloading user data based on id
2008-08-14 23:36:37 +00:00
mjollnir_
dadd943808
MDL-16015 - detect iceweasel as firefox
2008-08-12 17:23:38 +00:00
skodak
0b0bfa9345
MDL-15919, MDL-15920 reworked support for archiving
2008-08-08 10:22:59 +00:00
skodak
5ce29396ff
MDL-15928 comment improvement
2008-08-06 11:28:17 +00:00
skodak
ed94cb66c6
MDL-15928 switched to zip PHP extensions
2008-08-04 16:45:08 +00:00
skodak
744b64ff5d
MDL-14589 filedir location now fully configurable through file storage constructor
2008-08-04 13:21:38 +00:00
peterbulmer
1ce2da5836
MDL-12558 modify emails as they are being sent
...
replace urls in-place to direct users to their idp first
2008-08-03 23:24:12 +00:00
skodak
0c6d2dd41a
MDL-15919 deprecated old unzip_files()
2008-08-02 18:59:00 +00:00
skodak
6c0e2d08a9
MDL-14589 improved file handling operations & towards zipping support
2008-08-02 12:45:02 +00:00
skodak
a49709851e
MDL-15410 Require PHP 5.2.4 instead of 5.2.0 in HEAD because PHP 5.2.0 has many known problems :-(
2008-08-01 09:44:37 +00:00
skodak
db4f63e93c
MDL-15897 PARAM_SAFEDIR now alias of PARAM_ALPHANUMEXT
2008-07-31 23:06:58 +00:00
skodak
bed7993115
MDL-15897 deprecated PARAM_CLEANFILE - we now support unicode everywhere
2008-07-31 23:03:50 +00:00
skodak
172dd12c63
MDL-14589 initial file storage implementation, temporary file manager, migration of course files; blog conversion MDL-15905; assignment conversion MDL-15904; fromslib related file improvements MDL-15906
2008-07-31 22:15:30 +00:00
skodak
6e73ae1008
MDL-15897 param cleaning improvements - see tracker
2008-07-31 20:10:55 +00:00
moodler
e70e036c9f
MDL-15892 Added some phpdocs to explain the module parameter better
2008-07-31 07:36:57 +00:00
moodler
bea418fd03
Merged MDL-15892 Improved get_string - it can now handle paths as the module like 'mod/forum' or 'grade/import/txt' and will look in the right file automatically (eg forum.php and gradeimport_txt.php)
2008-07-31 07:29:01 +00:00
scyrma
f99442e312
Reverting previous commit that broke code that depended on the absence of parameter
2008-07-30 07:05:15 +00:00
scyrma
ecc3748f2c
Minor code cleanup - documentation already specifies that 'moodle.php' is the default language file.
2008-07-30 05:19:18 +00:00
sam_marshall
49f6e5f476
MDL-15498: Fixes to problems Petr identified with completion system checkin
2008-07-28 15:58:50 +00:00