Commit graph

2099 commits

Author SHA1 Message Date
tjhunt
7a9d505bb9 category paths: MDL-18897 call fix_course_sortorder eveywhere we insert a category to set category.path and .depth 2009-04-20 05:59:11 +00:00
sam_marshall
e7c6bf0eab MDL-18297: Changed date conditions so that the text and behaviour is more natural. 2009-04-17 16:06:29 +00:00
sam_marshall
e8e509865e MDL-17816: Changes to the way availability conditions are displayed when viewing course 2009-04-17 11:07:59 +00:00
sam_marshall
3982f0f87d MDL-17816: Minor whitespace fixes before I work on the actual bug 2009-04-17 10:22:56 +00:00
sam_marshall
52dbbcf665 MDL-17816: Minor whitespace fixes before I work on the actual bug 2009-04-17 10:20:44 +00:00
tjhunt
d91a4be06d Coding stype cleanup 2009-04-16 08:59:23 +00:00
jerome
a3a1708f63 category MDL-18876 replace error notice by exception, move success notice into index.php 2009-04-16 07:48:34 +00:00
tjhunt
ccc161f8f0 filters: MDL-7336 change weblib to use the new code
* Rename filter base class from filter_base to moodle_text_filter
* Remove unnecessary explicit constructors in moodle_text_filter
subclasses
* New filter_manager class, rather than static methods in filter_base
* Move some logic out of weblib, and into filter_manager
* Count filtering ops when $CFG->perfdebug on, via
performance_measuring_filter_manager
* Kill unused filter_string function. Petr said it should have been
private to weblib
2009-04-13 06:56:32 +00:00
sam_marshall
4d10247fdb MDL-18768: Limited size of context and modinfo caches to avoid memory problems with code that loops through many courses, also changed forum role_assign to use recordset for all-courses loops 2009-04-06 09:48:39 +00:00
skodak
97481934ca MDL-18778 more robust reset form defaults 2009-04-05 19:32:33 +00:00
fmarier
c93dae38f0 mod/resource: MDL-18641 ability for resource type plugins to specify their own icon 2009-04-03 01:13:42 +00:00
sam_marshall
d030fa7b12 MDL-17810: Fix to stop you making activities depend on themselves 2009-04-02 12:00:09 +00:00
jerome
a0c30e1b00 web service MDL-12886 merged Pigui's Team work on course external file + some refactoring 2009-04-02 06:59:14 +00:00
tjhunt
edc0c49332 file api: MDL-18754 improve the names of some functions.
The new names are documented on
http://docs.moodle.org/en/Development:Convert_Draftarea_Files
2009-04-01 04:34:58 +00:00
jerome
9c539ead6f web service MDL-12886 remove some old comments 2009-03-27 04:38:47 +00:00
tjhunt
82701e2443 switch roles: MDL-18132 separate database table role_allow_switch instead of re-using role_allow_assign.
This is part 1 that does the back-end:

1. New table role_allow_switch.
2. Upgrade that copies all the allows from role_allow_assign, and then drops the old CFG->allowuserswitchrolestheycantassign.
3. Old function get_assignable_roles_for_switchrole renamed to get_switchable_roles and changed to use the new table. Fixes MDL-18604 in HEAD.
4. Switch callers to use the new function name.
5. Unit tests for this new function.
6. To make those unit tests work, new switch_global_user_id and revert_global_user_id methods in UnitTestCaseUsingDatabase for toggling $USER->id.

I still need to do the editing interface under Administration ► Users ► Permissions ► Define roles. That will be done as a second commit.
2009-03-23 08:15:21 +00:00
jerome
71b77297a9 web service MDL-12886 add standard Course web service functions 2009-03-20 06:53:03 +00:00
tjhunt
1d693c8fd0 course settings: MDL-18595: Fix regression caused by switching the course settings form to use the new date selector.
The bad commit was http://cvs.moodle.org/moodle/course/edit_form.php?r1=1.65&r2=1.66

Sorry everyone who was inconvenienced by this.
2009-03-19 03:14:11 +00:00
tjhunt
feed81934b course settings: use the optional option on date selectors, rather than a manua disabled checkbox. Also use new duration element. 2009-03-16 06:09:43 +00:00
tjhunt
f6b6861d9d javascript: MDL-18568 We don't need a function called uncheckall, as well as one called checknone!
Also, clean up coding style in the popupchecker function.
2009-03-16 02:11:15 +00:00
jerome
0d4723ee62 web service MDL-12886 check that a user is a course participant before to add it to a group 2009-03-13 06:51:30 +00:00
skodak
0a94af2927 MDL-16852 fixed left join trouble; merged from MOODLE_19_STABLE 2009-03-04 13:36:06 +00:00
sam_marshall
10130df65b MDL-18430: Completion progress report CSV download should be whole report not one page 2009-03-03 17:28:05 +00:00
sam_marshall
7556422816 MDL-18272, MDL-18271: Conditional availability - grade condition to use percentages not raw grades; use wording rather than >= symbol in form because (apparently) teachers are functionally innumerate. ;) 2009-02-18 17:50:13 +00:00
skodak
90ee78e21c MDL-18293 removing unused error strings (now replaced by exceptions) 2009-02-17 16:33:32 +00:00
skodak
644d506ac1 MDL-16698 towards new general editor element + converted course section summaries 2009-02-17 16:18:05 +00:00
skodak
cd010c0b2f MDL-18286 fixed incorrect version number bump - thanks Anthony 2009-02-17 13:33:06 +00:00
skodak
9c023be3cd MDL-18282 fixed incorrect version number bump - thanks Anthony 2009-02-17 07:26:29 +00:00
stronk7
853a3d8e53 MDL-12846 course defaults - grrr I forgot to re-add the original setDefault() 2009-02-13 10:04:26 +00:00
stronk7
39c28155a5 MDL-12846 don't apply coursedefaults->category anymore. 2009-02-13 09:55:40 +00:00
stronk7
dfd74b5a72 MDL-10583 course format - discovered the get_section_name() that performs the fallback harcoded in previous commit. Merged from 19_STABLE 2009-02-05 13:30:08 +00:00
stronk7
f5ca86967b MDL-10583 course format - allow course formats to specify their section name ; merged from 19_STABLE 2009-02-05 13:13:31 +00:00
Francois Marier
6280ef3e58 Fix CVS-git drift (remove some files deleted in CVS) 2009-02-01 23:43:28 +00:00
stronk7
df2a8db150 MDL-18076 course participation report - fix actions dropdown not working. Merged from 19_STABLE 2009-01-30 10:14:01 +00:00
tjhunt
853a3eefd4 forum rating: MDL-18044 notice sometimes when a forum is rated, also XHTML strict problems and fix incorrect help text. 2009-01-27 06:35:56 +00:00
Jonathan Newman
4d933beb8a cvsimport fixups 2009-01-20 23:53:34 +00:00
skodak
56949c17de MDL-14992 refactored use of session_write_close() 2009-01-17 15:25:08 +00:00
sam_marshall
a343b13f59 MDL-17915: Conditional activities do not update when you change manual activity completion using an AJAX tickbox- 2009-01-15 17:09:02 +00:00
sam_marshall
a561d96ee2 MDL-17914: Conditional activities should check that available dates in module form are not stupid 2009-01-15 14:30:19 +00:00
stronk7
ae1467bbff MDL-17837 - mimic from 19_STABLE - apply some limits to the dropdown of users in first instance. 2009-01-14 18:23:30 +00:00
stronk7
487166dff1 Fix wrong use of get_users_by_capability() - param mesh 2009-01-14 18:07:31 +00:00
dongsheng
beeee4d21d "MDL-17747, add max category depth setting, merged from 1.9" 2009-01-14 04:48:22 +00:00
skodak
9870944feb MDL-16483 - stopped using MoodleUnitTestCase in tests where $DB not needed 2009-01-10 13:37:16 +00:00
tjhunt
06b3a6b297 accesslib: MDL-17626 delete_course_module should call delete_context. 2009-01-09 05:32:08 +00:00
tjhunt
4413941fee course requests: MDL-6160 clean up admin option for choosing who is notified. Merged from MOODLE_19_STABLE.
Also, change the 'notifyloginfailures' setting to use the same sort of admin setting type.
2009-01-08 07:07:00 +00:00
skodak
11003188a9 MDL-17799 proper log url sanitisation - big thanks to Full Name hacker ;-) 2009-01-07 23:00:59 +00:00
skodak
11e7b506ce MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support 2009-01-05 21:37:20 +00:00
skodak
93f66983cc MDL-17773 new get_login_url() function - fixes missing httpslogin tweaks 2009-01-02 22:56:48 +00:00
skodak
b7b64ff2e0 MDL-17754 next round of session related refactoring 2009-01-02 20:32:05 +00:00
skodak
542797b4e8 MDL-17767 loginas internals refactoring - code moved to sessionlib.php 2009-01-02 14:53:02 +00:00