moodler [Wed, 10 Dec 2008 06:23:35 +0000 (06:23 +0000)]
admin MDL-17429 Move registration button to admin menu, and make registration page a proper admin page, also fix bad DML call
admin MDL-16867 Change "Optional subsystems" menu item to "Advanced features"
tjhunt [Wed, 10 Dec 2008 02:57:41 +0000 (02:57 +0000)]
course request: MDL-17575 and MDL-6160 further improvements:
1/ email notification when course requested
2/ course request capability so that we can limit who can request new course
3/ list of my pending course requests on the request form
Implemented in 1.9 by Petr Skoda, and reviewed and merged to HEAD by me.
tjhunt [Tue, 9 Dec 2008 05:14:15 +0000 (05:14 +0000)]
define roles: MDL-16966 go back to 'Define roles' in the admin menu, rather than 'Manage roles'
Define is a stronger verb than manage, and most of the things there are to do with defining roles. I keep finding myself looking for 'Define roles' in the menu when I am testing, which suggests changing the working in 1.9 does more harm than good.
tjhunt [Mon, 8 Dec 2008 07:28:19 +0000 (07:28 +0000)]
course categories: MDL-17502 when deleting a category and its contents, check moodle/course:delete capability.
* Note: this would never lead to problems with default role definions.
* Also ended up mostly rewriting delete_category_form to simplify the messages that are displayed.
* New helper function require_all_capabilities, a bit like require_any_capability.
tjhunt [Mon, 8 Dec 2008 02:31:05 +0000 (02:31 +0000)]
course settings: MDL-17501 check for moodle/course:visibility in the course settings form.
1. If a user does not have that capability, don't let them change whether the course is visible.
2. Give teachers that capability by default.
3. To avoid regressions, on upgrade, give moodle/course:visibility to any role that has moodle/course:update.
danmarsden [Sun, 7 Dec 2008 21:54:49 +0000 (21:54 +0000)]
skip content structure page:MDL-11908: skip content structure page with multiple scos - if a teacher has set to skip, it should skip! - even with multiple scos.
tjhunt [Fri, 5 Dec 2008 08:56:54 +0000 (08:56 +0000)]
course request: MDL-9854 major cleanup to the course request code.
* Rewrite all the forms to use formslib and improve usability.
* Put the place where admins need to go to process approvals in the admin menu.
* Show the request course/pending requests button on the page for the category that requested courses get added to.
pilpi [Thu, 4 Dec 2008 15:13:22 +0000 (15:13 +0000)]
quiz editing: MDL-17409 converted strings to use $a
converted concatenation to use $a instead for new (committed with the rest of Quiz UI redesign project) strings, created new strings for old strings that did not yet use $a
pilpi [Thu, 4 Dec 2008 13:28:20 +0000 (13:28 +0000)]
quiz editing: MDL-17409 removed ":" from source
removed ":" from source where they occured with new (committed with the rest of Quiz UI redesign project) strings and changed the strings accordingly
samulik [Thu, 4 Dec 2008 12:23:12 +0000 (12:23 +0000)]
course import: MDL-17497 PHP was running out of memory if a category had a lot of courses. Now get_courses only fetches course id and fullname (merge from 19_STABLE)
* Simplify category editing permissions to just moodle/category:manage and moodle/category:seehiddencategories.
* Enforce those correctly. (Note MDL 17502 is still outstanding.)
* Don't screw up category sort order when you just edit name or description.
* Niceties like where redirects go when you cancel or submit forms.
* Make sure a global course creator can see the site admin block.
* Don't allow a category to be made the child of one of its children!
* General code cleanup to bring key files more in line with best pracitice.
Apologies for the fact it is one big patch, rather than a series of smaller patches. However, categoryedit.php, category.php and index.php where in pretty bad shape and needed significant cleaning up. categoryedit.php, in particular, was almost completely rewritten.
ericmerrill [Wed, 3 Dec 2008 16:31:49 +0000 (16:31 +0000)]
weblib: MDL-16293: background-color attribute stripped from html. Adding 'background-color' attribute to $ALLOWED_PROTOCOLS array so kses doesn't drop it.
poltawski [Mon, 1 Dec 2008 22:23:42 +0000 (22:23 +0000)]
lib: class curl does http proxy tunneling if http proxy set. Most
proxies do not permit this so I think its better to just use pure
pure http MDL-17482
pichetp [Mon, 1 Dec 2008 04:00:54 +0000 (04:00 +0000)]
Modify a DB call so that the first index is not multiple .
Eliminate references to datasetdefinition->type other than 1
as the dataset tables are just used by calculated that used type =1 i.e. LITERAL.