2378 Commits

Author SHA1 Message Date
stronk7
77a7b86529 MDL-19246 restore - cleanup of "restoreto" options. Some more extra uses updated. Merged from 19_STABLE 2009-05-22 10:32:34 +00:00
skodak
a19a06d09e MDL-14589 file api improvements - converting more params to general $options array 2009-05-18 19:04:06 +00:00
skodak
73efeff61b MDL-19119 moving get_fast_modinfo() to moodlelib.php - the recent changes related to inclusion of course/lib.php were causing regressions 2009-05-17 18:45:00 +00:00
sam_marshall
9593d8b87f MDL-19186 Fixed couple warnings on moodleform_mod when completion is enabled 2009-05-14 10:55:14 +00:00
fmarier
dc247e5232 MDL-19179 cache superfluous queries when listing categories on front page 2009-05-14 06:04:35 +00:00
moodler
609bc82be7 course/format/social MDL-18483 For social course format, print forum intro on course page (Merged from 1.9) 2009-05-12 05:10:28 +00:00
skodak
34d39b792c MDL-19002 standardized constructor parameter order 2009-05-11 18:55:03 +00:00
mjollnir_
00f270bc6c fix for MDL-19110
Author: Adrian Schlegel <adrian@liip.ch>
2009-05-08 14:24:56 +00:00
tjhunt
4e1132a8c5 forum: MDL-19119 missing requires now course/lib.php is not included everywhere.
Put in most of the obvious missing require_once($CFG->libdir . '/completionlib.php');
2009-05-08 09:00:41 +00:00
tjhunt
6cbcbf0fb3 blocklib: MDL-19010 eliminate remaining calls to blocks_repopulate_page 2009-05-08 08:22:59 +00:00
tjhunt
f4d38d20fb blocklib: MDL-19010 and now you can delete blocks too! 2009-05-08 06:34:40 +00:00
tjhunt
1d00ec6a6a blocklib: MDL-19010 finally fix the regressions that mean that you could not create a new course. 2009-05-08 03:11:24 +00:00
tjhunt
f474a4e583 blocks: MDL-19010 Fix further blocks-related breakage, including removing all references to blocks_insance_old outside blocklib.php 2009-05-07 08:55:10 +00:00
tjhunt
b7b2d0f37d moodle_page: MDL-12212 improve comments and add some work-in-progress warnings 2009-05-06 09:29:05 +00:00
tjhunt
5d3e9d9fe3 moodle_page: MDL-12212 remove deprecated calls from course/view.php and page_course::print_header 2009-05-06 09:19:46 +00:00
tjhunt
93d4a373f9 blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere 2009-05-06 09:13:16 +00:00
tjhunt
66b10689e2 blocklib: MDL-19010 upgrade database tables ready for now blocks system 2009-05-06 09:12:03 +00:00
tjhunt
cfcfb9f3d0 moodle_page: MDL-12212 kill legacy page_allows_editing implementations 2009-05-06 09:02:48 +00:00
tjhunt
830dd6e9cd moodle_page: MDL-12212 reimplement user_is_editing, deprecate isediting 2009-05-06 08:59:29 +00:00
tjhunt
ad52c04f4c moodle_page: MDL-12212 Kill legacy url_... and blocks_... methods
Start calling $PAGE->set_url in all the places it will be necessary
Start of a stub implementation of $PAGE->blocks to stop other things breaking
Remove some of the special case methods in admin_page
2009-05-06 08:55:53 +00:00
tjhunt
948203a5e8 moodle_page: MDL-12212 ->category and ->categories 2009-05-06 08:46:05 +00:00
tjhunt
ad5d5997ed moodle_page: MDL-12212 more ->pagepaths to kill 2009-05-06 08:43:51 +00:00
tjhunt
d529807a65 moodle_page: MDL-12212 kill $CFG->pagepath (use $PAGE->set_pagetype)
deprecate $PAGE->get_format_name (use $PAGE->pagetype)
deprecate page_id_and_class (use $PAGE->pagetype)
2009-05-06 08:38:55 +00:00
tjhunt
c13a5e71cc moodle_page: MDL-12212 start of new moodle_page class
* has course and status fields
* $PAGE->status updated by print_header and footer
* $PAGE->set_course now replace course_setup function
* global $PAGE created in setup.php
* unit tests for functionality so far
* Moodle still seems to work after this commit!
2009-05-06 08:29:22 +00:00
skodak
8b449a3958 MDL-18124 course creators can not delete any courses in their category any more, only those they created at most one day ago; merged from MOODLE_19_STABLE 2009-05-04 19:56:32 +00:00
skodak
a08171c5c2 MDL-19002 file upload limits support 2009-04-28 19:08:33 +00:00
skodak
43b44d5ea6 MDL-18910 full support for module intro editor with embedded images 2009-04-22 07:14:19 +00:00
skodak
dc5c2bd9eb MDL-18910 full support for module intro editor with embedded images 2009-04-21 21:17:21 +00:00
skodak
42f103be4c MDL-18910 moving modedit features to modname_supports() 2009-04-21 08:57:20 +00:00
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