2236 Commits

Author SHA1 Message Date
skodak
fc29e51b2d MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:34:43 +00:00
skodak
a8f3a651c0 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 18:16:08 +00:00
skodak
bb4b6010f3 MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:17:10 +00:00
tjhunt
cf6155226c ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
There is a new implementation of require_js in lib/deprecatedlib.php,
based on $PAGE->requires.

There were a few other recently introduced functions in lib/weblib.php,
namely print_js_call, print_delayed_js_call, print_js_config and
standard_js_config. These have been removed, since they were never in
a stable branch, and all the places that used them have been changed
to use the newer $PAGE->requires->... methods.

get_require_js_code is also gone, and the evil places that were calling
it, even though it is an internal function, have been fixed.

Also, I made some minor improvements to the code I committed yesterday
for MDL-16695.

All that remains is to update all the places in core code that are
still using require_js.

(This commit also fixes the problem where the admin tree would not
start with the right categories expanded.)
2009-06-12 12:13:07 +00:00
tjhunt
0eab1dc067 Fix whitespace. 2009-06-12 11:57:15 +00:00
tjhunt
c679c3582a Fix some fallout from the pagelib changes. 2009-06-12 11:56:30 +00:00
skodak
a8d6ef8c6c MDL-18293 $DB->somethiong is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:16:20 +00:00
skodak
bf8e93d704 MDL-18293 $DB->somethiong is using exceptions, no need for ifs tehre, removing useless strings 2009-06-03 20:00:08 +00:00
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