moodle/lib/db
tjhunt 8ed5dd63ee course categories: Fix many bugs with category editing and permissions. Clean up code.
Bugs: MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557.

* 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.

Merged from MOODLE_19_STABLE.
2008-12-04 08:53:10 +00:00
..
access.php course categories: Fix many bugs with category editing and permissions. Clean up code. 2008-12-04 08:53:10 +00:00
events.php MDL-10107 Fixed the definition of message providers ... it now works through files very similar to those for events and capabilities, which makes them easy to add/remove/change as necessary 2008-07-31 08:01:46 +00:00
index.html Some blank index.html files to prevent browsing 2004-03-20 04:10:26 +00:00
install.xml MDL-15499 Database tables for conditional activities (code to follow! I hope) 2008-11-24 17:21:30 +00:00
messages.php MDL-10107 Fixed the definition of message providers ... it now works through files very similar to those for events and capabilities, which makes them easy to add/remove/change as necessary 2008-07-31 08:01:46 +00:00
upgrade.php MDL-15499 Database tables for conditional activities (code to follow! I hope) 2008-11-24 17:21:30 +00:00
upgradelib.php MDL-17436 fixed pg issue with char <> num comparison 2008-11-28 09:16:24 +00:00