Commit Graph

990 Commits

Author SHA1 Message Date
skodak 17da2e6f28 MDL-16438 centralise information about plugins to avoid duplication, includes local customisation conversion to standard plugin structure + fixes for some recent regressions; see tracker for more details and links to docs and forums discussions 2009-06-19 14:25:56 +00:00
skodak 9d7493399d MDL-18293 removed obsoleted checking of return values from insert and update_record + unused strings cleanup 2009-06-13 17:35:10 +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 f4d76b9cdf blocklib: MDL-19010 fix some minor problems with existing blocks. 2009-06-05 08:28:45 +00:00
stronk7 942cd61b2e MDL-19350 upgrade review - adding missing savepoints to blocks 2009-06-03 14:49:57 +00:00
tjhunt e03c0c1d49 blocklib: MDL-19010 fix editing block config and block roles. 2009-05-08 07:47:50 +00:00
tjhunt f4d38d20fb blocklib: MDL-19010 and now you can delete blocks too! 2009-05-08 06:34:40 +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 cb6402296c blocklib: MDL-19010 remove no-longer-necessary global variable use from blocks 2009-05-06 09:28:26 +00:00
tjhunt 3179b0006a blocklib: MDL-19010 Fix blocks that were relying on ->instance in an unfortunate way 2009-05-06 09:15:33 +00:00
tjhunt 66b10689e2 blocklib: MDL-19010 upgrade database tables ready for now blocks system 2009-05-06 09:12:03 +00:00
tjhunt f8b80dbd95 moodle_page: MDL-12212 completely remove the old tag and admin page classes 2009-05-06 09:11:07 +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 c4740390b5 moodle_page: MDL-12212 remove useless code as a preparitory step 2009-05-06 08:26:19 +00:00
stronk7 74c288a100 MDL-18577 drop enums support - step2: enums out from install.xml files 2009-05-01 14:07:43 +00:00
poltawski becf869c6b blocks/tags Move youtube/flickr blocks away from magpie
Instead use our general curl cache MDL-18973
2009-04-26 15:19:45 +00:00
skodak cbc2b5df03 MDL-18901 reimplemented trusstext support in glossary + standardising format column for text fields 2009-04-20 10:05:50 +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
poltawski 8a083dc75b Messages block: Incorrect link to user profile
The block incorrectly links to site profile in the current pageid.
This doens't make sense in a number of different scenarios, but
most notably if the user who messaged isn't enrolled in the current
course. Instead link to the profile at site context like the messaging
popup does.

Fixes: MDL-18279 MDL-6890 MDL-5887
merged from MOODLE_19_STABLE
2009-03-22 22:40:07 +00:00
mjollnir_ 2a42e8954f MDL-18351: activity block: detect when there's no course (eg admin page) and return (merged from MOODLE_19_STABLE) 2009-02-23 14:49:05 +00:00
Francois Marier 6280ef3e58 Fix CVS-git drift (remove some files deleted in CVS) 2009-02-01 23:43:28 +00:00
skodak 795a08adb7 MDL-17458 upgrade logging implemented + a lot more refactoring + exceptions implemented in install/upgrade code + lang pack cleanup + some more improvements 2009-01-31 20:07:32 +00:00
jerome b894086df5 calendar MDL-14693 fix month link when calendar is displayed on a text page resource, merged from 1.9 2009-01-30 06:27:20 +00:00
Jonathan Newman 4d933beb8a cvsimport fixups 2009-01-20 23:53:34 +00:00
skodak ab2eb65c88 MDL-17846 moved blocks code from /blocks/db/* to core 2009-01-10 21:06:53 +00:00
jerome 59eaa9ac49 online user block MDL-15325 optimize the display of the message icon/link (instantiation out of a loop), merged from 1.9 2009-01-09 00:56:45 +00:00
jerome 593bebe099 online user block MDL-15325 Online Users Block didn't perform capability check when displaying messaging icon, merged from 19 2009-01-08 07:40:01 +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 0ad6b20cb2 MDL-17754 session code refactoring; removing test cookie which will be replaced by wwwroot checks 2009-01-02 13:42:43 +00:00
skodak 973d2660e6 MDL-16613 sesskey cleanup 2009-01-02 10:51:26 +00:00
skodak d4a1fcaf11 MDL-16613 sesskey cleanup 2009-01-02 10:36:25 +00:00
diml ac3620f6fc Adds reference to global $DB object. 2008-12-25 20:26:55 +00:00
mjollnir_ ee1efe0b0f MDL-17694: very small stickyblocks improvements (Merged from MOODLE_19_STABLE) 2008-12-19 09:49:33 +00:00
dongsheng 60e40dda6c "MDL-14129, remove the rest error() in moodle2" 2008-12-12 04:53:32 +00:00
tjhunt 7192011c25 quiz results block: MDL-17583 notices in HEAD. 2008-12-10 04:13:04 +00:00
skodak 283ebb7147 MDL-11984 blocks: new capability block/online_users:viewlist which may be used to restrict viewing of list of online users, if cap not allowed only number of users dispalyed, I hope this will be also faster because only one query used now (insetad of two); for BC reasons enabled by default in all legacy roles 2008-11-30 15:42:48 +00:00
skodak a2e4bf7f23 MDL-17463 - reparate capabilities for course and admin reports 2008-11-29 14:22:10 +00:00
ikawhero cf74300857 MDL-17434 Fixed URLs for enrol/unenrol links
Merged from MOODLE_19_STABLE
2008-11-28 06:06:35 +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 1bd72efa00 cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table - found another reference to the students column. 2008-11-24 06:28:57 +00:00
skodak e8a7edd7d6 MDL-17236 html block: proper cleanup of html 2008-11-19 16:46:41 +00:00
tjhunt 9101efd312 cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table.
For something that has been deprecated for over two years, they were still used in a lot of places!
2008-11-13 08:40:57 +00:00
tjhunt 3d05fc1365 quiz results block: MDL-17137 block_quiz_results: manager links to group/overview are wrong.
Eloy told me exactly what to change. I don't know why he did not commit the fix himself!
2008-11-06 06:13:09 +00:00
stronk7 5e71406d93 MDL-14998 - roles: User needs to have mod/forum:viewdiscussion to be able to see news block. Merged from 19_STABLE 2008-10-31 19:05:56 +00:00
tjhunt 96f1a7a265 roles admin: Improve the usability of the assign roles interface - this is the first half of the work. Part of MDL-16993.
To do this, I found a way to clean up the method signatures of a couple of accesslib methods, so I did, hence the fact that this seems to touch some unrelated files.

Also, there is a nice new method in accesslib get_context_url, which gives you the natural URL for a context, so the course view page, or the user profile, etc.
2008-10-30 06:26:18 +00:00
tjhunt d0d2d97337 admin tree: remove spurious space. 2008-10-22 10:24:26 +00:00