Commit graph

7236 commits

Author SHA1 Message Date
mjollnir_
d9c2628b58 MDL-16861 portfolio/export make sure to zip up files including the path info 2008-11-11 18:52:10 +00:00
tjhunt
7906379c9a role assign: MDL-13325 when assigning roles inside front page activites, list all users as potential users. 2008-11-11 07:23:25 +00:00
jamiesensei
91ec2c427a MDL-17183 "function 'question_get_real_state' fails when response is empty string" fixed regular expression 2008-11-10 07:03:25 +00:00
dongsheng
d9e673c10b "MDL-16549, fixed typo" 2008-11-08 14:24:53 +00:00
tjhunt
8f52ac3708 accesslib: MDL-17159 Fix regression I caused with MDL-8312. 2008-11-07 02:51:47 +00:00
skodak
d21c50373a MDL-17129 dml/ddl: improved handling of dml exception in dml 2008-11-06 18:55:54 +00:00
skodak
ba63f3775b MDL-17130 dml: removed lambda-style functions - they might be a major scalability problem in future 2008-11-06 18:36:50 +00:00
tjhunt
06de498b70 accesslib: MDL-16549 Now that moodle/site:doanything is not editiable, reset the permissions to default on all roles. 2008-11-06 08:35:23 +00:00
tjhunt
01a80f51e5 role assign: MDL-8312 Restrict which roles can be assigned at which contextlevels.
* New table role_context_levels
* Populate table with defaults on install
* Populate table on upgrade with the same defaults, plus any additional ones needed to ensure all the role assignments already in the database are allowed.
* Change get_assignable_roles to respect these settings.
* UI for these settings on the add/edit role form.
* Save these settings when a role definition is saved.
* If in a context, there are no roles you can assign, display a polite message.
* Back up these settings.
* Restore these settings. When resotring a <=1.9.x backup file, any newly imported roles are set to be assignable at all contextlevels.

Restore not tested because it is broken in HEAD.
2008-11-06 07:34:01 +00:00
skodak
591ffe1a6a MDL-17129 dml/ddl: improved ddl exceptions when changing db structure 2008-11-05 10:45:45 +00:00
skodak
b6f526be05 MDL-17110 snoopy: added import info 2008-11-05 09:13:38 +00:00
skodak
86ca52b21d MDL-17110 snoopy: added import info 2008-11-05 09:13:17 +00:00
tjhunt
faf75fe715 role overrides: MDL-17070 Improve override roles page to match the recent usability improvements on the assign page.
Including:
MDL-11529 When assigning/overriding roles, the dropdown for switching to another role should have a number in brackets

MDL-16549 Should not be able to edit the permission associated with moodle/site:doanything on any role.
2008-11-05 08:17:30 +00:00
skodak
cbc08f3bfc MDL-17130 dml: eliminated $CFG->dbfamily 2008-11-05 00:12:30 +00:00
skodak
ba98912f8c MDL-17020 pgsql: silenced php warnings 2008-11-05 00:05:41 +00:00
skodak
6e22a695d8 MDL-17129 dml: fixed dml exception handling in unit tests 2008-11-05 00:05:18 +00:00
skodak
c23b0ea11b MDL-17129 dml: implemented exceptions in new drivers, yay! 2008-11-04 23:07:14 +00:00
skodak
d8f27d7bd2 MDL-16920 mysqli: refactored driver to use new query logging 2008-11-04 22:29:18 +00:00
skodak
a6283e9127 MDL-16920 mysqli: refactored driver to use new query logging 2008-11-04 22:25:23 +00:00
skodak
d139b06701 MDL-17020 pgsql: new port dboption 2008-11-04 21:55:39 +00:00
skodak
9214025e3e MDL-17129 basic dml exceptions 2008-11-04 21:50:13 +00:00
stronk7
05ed3df5e0 MDLSITE-548 - langconfig: Adding thousands separator. Merged from 19_STABLE 2008-11-04 16:53:16 +00:00
mudrd8mz
0c49565b34 Set images base path to Moodle dirroot 2008-11-04 12:13:04 +00:00
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
e7b7583cc3 user selection: MDL-17073 add options to control the search in a collapsible region - Fix IE layout glitch. 2008-11-04 09:14:03 +00:00
tjhunt
c679952e09 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. 2008-11-04 07:22:23 +00:00
tjhunt
904998d8f9 user selection: MDL-17073 add options to control the search in a collapsible region. 2008-11-04 05:12:12 +00:00
tjhunt
67c8a3e870 user selection: MDL-17073 add options to control the search in a collapsible region. 2008-11-04 05:12:12 +00:00
skodak
23a766143d MDL-17110 snoopy: imported new version 1.2.4 2008-11-03 07:55:46 +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
tjhunt
512c5901fe 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. 2008-11-03 05:27:10 +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
dongsheng
b3e6e8047b "MDL-16341, add upload function for flickrlib" 2008-11-03 03:22:55 +00:00
skodak
0cde3ede1c MDL-11789 fixed regressions preventing file caching when default used; merged from MOODLE_19_STABLE 2008-11-01 19:28:31 +00:00
skodak
a857b7ea38 MDL-17099 htmlpurifier: new version from upstream 2008-11-01 18:58:29 +00:00
nicolasconnault
8470c13829 MDL-17091 Removing superfluous Zend framework files 2008-10-31 21:36:57 +00:00
mudrd8mz
66439e36ce 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
2008-10-31 21:11:46 +00:00
nicolasconnault
647a1a8289 MDL-17091 Added zend framework to include_path 2008-10-31 15:34:23 +00:00
nicolasconnault
5ab88978b9 MDL-17091 Adding part of GoogleData API from the Zend Framework, in order to support portfolio and repository functions. Also completed basic portfolio plugin. 2008-10-31 15:33:45 +00:00
nicolasconnault
0d4231f0e3 MDL-16341 Finished flickr plugin 2008-10-31 09:14:06 +00:00
tjhunt
3b0bf2e4dd ajax: MDL-17086 Add a CSS class name to <body> when JavaScript is enabled 2008-10-31 08:45:35 +00:00
tjhunt
bd1884fe6b ajax: MDL-17084 provide a way for JavaScript to update user preferences. 2008-10-31 08:25:19 +00:00
tjhunt
6cab02ac52 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.
2008-10-30 10:49:15 +00:00
tjhunt
96f1a7a265 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.
2008-10-30 06:26:18 +00:00
tjhunt
8bb8a8b43c print_table: allow headings to span multiple columns. 2008-10-30 04:20:03 +00:00
skodak
1500142bfb MDL-14990 dml: towards proper logging/perf infrastructure 2008-10-29 23:55:16 +00:00
tjhunt
e4749fcc08 Make developer debug mode available to JavaScript. 2008-10-29 08:17:18 +00:00
tjhunt
10e99feaa2 Fix and improve error message. 2008-10-29 06:54:32 +00:00
skodak
bb5f11ece7 MDL-14990 dml: towards proper logging/perf infrastructure 2008-10-28 22:31:26 +00:00