Commit graph

3373 commits

Author SHA1 Message Date
arborrow
99fd4f7988 MDL-17741 - typo $tableparam; merged from MOODLE_18_STABLE 2008-12-26 23:24:58 +00:00
arborrow
93816e5d3f MDL-17741 - typo $tableparam 2008-12-26 20:47:57 +00:00
sam_marshall
82bd6a5ea9 MDL-15499: Conditional availability of activities 2008-12-17 16:37:35 +00:00
sam_marshall
6c59c9c76b MDL-17667: Added simple XSL-based 'doc' feature to xmldb 2008-12-16 12:55:21 +00:00
stronk7
a243ffeb07 MDL-17599 scheduled backup: add support for grade history setting + minor XML formatting. Merged from 19_STABLE 2008-12-15 21:35:47 +00:00
jonathanharker
e6e13284f9 MDL-16875 New Moodle setting - sessioncookiedomain
Added new sessioncookiedomain setting to session handling section.
 * allows you to change the domain that the Moodle cookies are available
   from. This is useful for Moodle customisations (i.e. Squirrelmail SSO
   or enrolment plugins) that need to share Moodle session information
   with a web application on another subdomain.
 * Will NOT work if the moodle host does not have a domain - i.e. just a
   hostname, e.g. 'localhost' or 'myhostname'. Needs a FQDN
 * Currently the setting is set to PARAM_TEXT length 50 since PARAM_HOST
   does not allow a leading dot e.g.  '.mydomain.com'
 * TODO: do we make up a new PARAM_COOKIEDOMAIN which is the same as
   PARAM_HOST but allows leading dots? Using PARAM_HOST and prepending a
   dot may not always be desirable.
2008-12-14 22:28:39 +00:00
dongsheng
771dc7b298 "MDL-14129, fix error() in moodle2" 2008-12-12 05:45:43 +00:00
dongsheng
60e40dda6c "MDL-14129, remove the rest error() in moodle2" 2008-12-12 04:53:32 +00:00
tjhunt
92f008465c admin tree: MDL-10047 and MDL-13104 weird things happen when you turn editing on and off.
That was becuase not enough information was being passed in for the blocks editing controls to construct the right URL to reload the page.

It is also now possible for admin external pages to add some UI next to the turn blocks editing on/off button. For example, when you are editing the list of course catgories, the turn editing off button is now in the right place.
2008-12-11 09:21:41 +00:00
tjhunt
a90d7cf93d roles ui: Fix notices and XHTML strict. 2008-12-11 09:08:20 +00:00
dongsheng
ff9b4ea40a "MDL-17570,clean align property, merged from 1.9" 2008-12-10 07:24:11 +00:00
dongsheng
85db96c5b4 "MDL-17570, cleanup align property in div, merged from 1.9" 2008-12-10 06:48:54 +00:00
moodler
f94824dbbe 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"

(Sorry for the mixed checkin)
2008-12-10 06:23:35 +00:00
tjhunt
e452210a18 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.
2008-12-10 02:57:41 +00:00
tjhunt
44079dfe7a 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.
2008-12-09 05:14:15 +00:00
skodak
36641dd264 MDL-17372 fixed regression in 3rd party admin reports; merged from MOODLE_19_STABLE 2008-12-06 20:43:45 +00:00
skodak
cea67da005 MDL-11265 added shorter log retention periods and a warning that it might have some side effects 2008-12-06 17:44:57 +00:00
tjhunt
77eddcd527 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.
2008-12-05 08:56:54 +00:00
skodak
0055221839 MDL-17522 no db specific tests - they all must work the same! 2008-12-04 15:06:28 +00:00
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
tjhunt
2aa3baedc7 capability report: MDL-17410 did not work if a capability was not set anywhere.
Change it so that the system context is always shown.
2008-12-03 02:40:17 +00:00
skodak
53bd22559d MDL-17486 added option to make my courses list in user profile hidden 2008-12-01 22:06:33 +00:00
sam_marshall
832e1528ad MDL-17425: Unit test system - improved reporting of moodle_exception 2008-12-01 16:46:01 +00:00
skodak
d86f4473e5 MDL-17372 moving the categories out of the if cap block - cap report needs to add page there 2008-11-30 14:09:24 +00:00
skodak
e0f81e94a6 MDL-17465 - separate live log capability adn admin tree link 2008-11-29 16:15:40 +00:00
skodak
a2e4bf7f23 MDL-17463 - reparate capabilities for course and admin reports 2008-11-29 14:22:10 +00:00
skodak
dfca83b7b1 MDL-16865 course defaults default settings are applied later when other settings already present, this fixes warnings during install and other potential problems 2008-11-28 18:24:47 +00:00
skodak
b63a6a6338 MDL-17372 admin reports: Added full plugin support for admin reports - fixed sorting regression, plugins now loaded as last category 2008-11-28 08:04:23 +00:00
skodak
214b1cf7a8 MDL-17428 Do not include in the middle of file in global scope 2008-11-27 22:46:34 +00:00
skodak
3c67721aa1 MDL-17405 moving Data mod upgrade notification to proper place (upgrade.php) - better notification will be implemented in MDL-17427 2008-11-27 22:14:34 +00:00
sam_marshall
c34845e2e2 MDL-17425: Unit test system - improved reporting of moodle_exception 2008-11-27 13:41:08 +00:00
tjhunt
9f64eef7fd health centre: MDL-16935 Question categories should belong to a valid context solution has SQL that does not work in MySQL 2008-11-27 05:57:11 +00:00
skodak
d994ced22b MDL-17372 admin reports: Added full plugin support for admin reports; added specail capability for unittest execution, minor refactoring 2008-11-26 19:27:39 +00:00
tjhunt
e33025db6a roles / profile: MDL-14937 remove reference to ra.active column until MDL-13240 is done. 2008-11-26 14:49:19 +00:00
nicolasconnault
dbc0194458 MDL_13766 Refactoring of core repository code and added first unit tests 2008-11-26 07:03:10 +00:00
tjhunt
759adfffa9 user's role / capabiltiy report: sort the context tree. 2008-11-25 07:29:14 +00:00
tjhunt
e494fbf171 override roles: MDL-8313 followup - don't show capabilities you can't change the override of in basic mode. 2008-11-24 08:19:33 +00:00
tjhunt
ff493b6b24 roles / profile: MDL-14937 A the user's roles report from contrib to core. Finish. 2008-11-24 06:33:35 +00:00
tjhunt
abfc0304e1 role assign: Don't get duplicate records in potential_assignees_below_course user selector 2008-11-24 04:55:57 +00:00
tjhunt
840b4f0b67 capability report: Remove unnecssary, probably wrong, line of code. 2008-11-24 04:46:29 +00:00
skodak
54e79bc3ff MDL-15461 fixed DML conversion typos 2008-11-22 19:42:20 +00:00
tjhunt
74f6cf8037 roles / profile: MDL-14937 A the user's roles report from contrib to core.
This is work in progress. I have integrated it into the profile tabs. Now I just need to make it work again.
2008-11-21 08:23:57 +00:00
jerome
c861f079e4 database: MDL-16999 fix "Required Entries" and "Required Entries before viewing" settings. Display a warning message during upgrade process if the fields were set previously (partially merged from 1.9) 2008-11-21 07:19:00 +00:00
tjhunt
e6a3587c59 role assign: MDL-17323 Show users from parent contexts ... Refine group labels again. 2008-11-21 06:26:42 +00:00
tjhunt
490740d6cb role assign: MDL-17323 Show users from parent contexts ... Refine group labels. 2008-11-21 06:19:52 +00:00
tjhunt
a792ac1d7a define roles: MDL-16966 etc. more UI polishing
* Remove inconistently placed and unnecessary heading, moving help icon.
2008-11-21 06:19:01 +00:00
tjhunt
698ae7eb24 role assign: MDL-17323 Show users with the role in a parent context as disabled opitons in the existing users box 2008-11-21 05:46:45 +00:00
tjhunt
bed9cec80b define roles: MDL-16966 etc. polishing the new roles UI following a meeting with Martin.
* Move the show/hide advanced button a bit down the page.
* Improve save button caption when creating a role.
* Don't show defaults on the basic define roles screen.
* Explain the background shading on the advanced roels screen.
* Fix the problem with the risks link to Moodle docs.
* Help icon by the permissions column heading.
* Tables with rotated <th>s, make them vertical-align: bottom.
* Rename explain.php and explainhascapability.php to check.php and explain.php
* Tool tips on the number headers in the explain table.
* Explain table - role names were missing.
* Allow link_to_popup_window to work with full URLs.
2008-11-20 09:57:20 +00:00
tjhunt
0c90f98788 formslib: MDL-13210 - partial - try to make validation errores less annoying.
I have made them float right, and reduced the padding on the red box, so they don't cuause the height of the form to change so much, if the error fits to the right of the form control. I realise that some people may not like this, which I why I have done this in head only for now. I will revert this if told to.
2008-11-20 08:30:35 +00:00
skodak
627d326ade MDL-17274 security: register globals not supported- now we are preventing upgrades and installs too 2008-11-19 09:46:09 +00:00