Commit Graph

193 Commits

Author SHA1 Message Date
skodak 03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +00:00
nfreear 468c120ae9 Partial fix for reopened MDL-7474, Accessibility: "Provide alt text for ascending/ descending icons in glossary" 2007-09-24 17:09:37 +00:00
skodak 85c9ebb926 MDL-1883 improved perf when editing scales - new function xxx_scale_used_anywhere() 2007-09-18 18:37:58 +00:00
skodak 3bfabe6e1a MDL-9549 minor cleanup 2007-08-10 21:01:46 +00:00
stronk7 ea16f9b2dc Now the glossary->allowcoments setting is respected. MDL-8056
Credit goes to Matt Clarkson. Thanks.

Merged from MOODLE_18_STABLE
2007-07-15 22:27:16 +00:00
skodak adcbb43a25 MDL-10422 fixed missing include 2007-07-11 17:59:13 +00:00
skodak ac9b080524 MDL-10202 merge raw and final grade tables 2007-06-20 23:06:29 +00:00
skodak d55930f153 MDL-9516 removing include of gradelib.php - now included only when needed 2007-06-11 11:28:42 +00:00
skodak b67ec72f57 MDL-9516 update_grade(); now required $source of grading to allow modification of original grades in activities through grade_updated event 2007-06-06 23:04:24 +00:00
skodak 612607bd47 MDL-9516 new central grading function update_grade(); to be improved/tested more tomorrow 2007-06-05 22:58:37 +00:00
skodak 5980d52f23 MDL-9516 fixed mod_form.php logic + related lib issues 2007-06-03 19:12:55 +00:00
skodak 1970d24381 MDL-9549 function param renamed 2007-06-03 12:34:56 +00:00
skodak dd232d0100 MDL-9549 some more grading and rating improvements, cleanup and fixes 2007-06-03 12:22:23 +00:00
skodak 3e6303b7be MDL-9549 no rating fix 2007-06-03 11:29:38 +00:00
skodak 3460111498 MDL-9549 no grading fix 2007-06-03 10:30:23 +00:00
skodak b01abc85e4 MDL-9549 fixed deleting of instance 2007-06-03 10:10:40 +00:00
skodak 4e9ba8c052 MDL-9549 added proper handling of magic quotes when dealing with mod_form 2007-06-03 09:56:49 +00:00
skodak e8586b5f34 MDL-9549 minor code formatting cleanup 2007-06-03 09:27:16 +00:00
skodak d31bae7094 MDL-9549 added comments and fixed grade item delete 2007-06-03 09:06:58 +00:00
skodak e6d4504807 MDL-9549 Implement grade_updated event triggers in Glossary 2007-06-02 22:18:01 +00:00
skodak 63e21b9bda MDL-10009 ratings settings do not work in glossary 2007-06-02 14:03:06 +00:00
mattc-catalyst eee75231c1 mod/glossary: HTML fixes
Fixed HTML errors causing parser errors in Firefox when in developer debug
mode.


Author: Matt Clarkson <mattc@catalyst.net.nz>
Committer: Matt Clarkson <mattc@catalyst.net.nz>
2007-04-16 23:16:25 +00:00
toyomoyo 5bd76d7fba merged fix for MDL-9097, xhtml fixes for glossary 2007-03-30 07:04:43 +00:00
stronk7 82015ed26f urlencode() hook for correct parameter handling & XHTML.
Merged from MOODLE_18_STABLE
2007-03-20 00:11:55 +00:00
stronk7 7a3ec1afc5 Deleting some inline styles and unused code. MDL-8746
Merged from MOODLE_18_STABLE
2007-03-19 20:15:03 +00:00
moodler 9ca8cc0847 Basic fixing of tabs for glossary 2007-02-01 06:54:15 +00:00
stronk7 a4bad45c2c Some more uses of $CFG->dbfamily. MDL-7061 2007-01-13 00:32:19 +00:00
toyomoyo 36a2b6bdc3 MDL-7861, xhtml strict related changes for glossary 2007-01-12 06:57:33 +00:00
skodak ff8889d8cf MDL-7861 still some icons left ;grr previous commid had wrong MDL id 2007-01-08 20:38:03 +00:00
skodak 0d905d9f34 MDL-7861 new class .icon and .iconsmall 2007-01-08 09:14:05 +00:00
skodak feaf5d06db MDL-8015 improved file uploading
- changed file upload api in formslib
- fixed blog attachments and related code in file.php
- fixed glossary attachments
- fixed embedded images in forum posts and blogs - only gif, png and jpeg; the problme was that svg were embedded using img tag which was wrong, the same applied to other picture formats unsupported by browsers (please note that student submitted svg should be never embedded in moodle page for security reasons)
- other minor fixes
2006-12-28 21:21:44 +00:00
skodak 7150b8ae20 MDL-7434 all images that convey information should have alt text to convey that information - part 3 2006-11-26 16:20:19 +00:00
toyomoyo baecd8cd72 dropping studentcanpost in glossary, MDL_7170 2006-11-15 03:15:59 +00:00
jamiesensei a02c77dc6e glossary form migrated to formslib
and other formslib forms now using $COURSE global
2006-11-13 07:52:01 +00:00
toyomoyo 7ee256eed3 fix for MDL-7474, provide alt text for ascending/descending icons in glossary 2006-11-13 02:20:47 +00:00
skodak 810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
stronk7 6f4bdb9c9b Prevent +/- operators (REGEXP) on glossary searches for MSSQL and Oracle. MDL-7312
Merged from MOODLE_17_STABLE
2006-10-31 20:34:12 +00:00
skodak eebc919280 MDL-6940 - I decided to rewrite the glossary comments UI, the original code (pre 1.8) was not nice at all, it is IMHO more readable now and the forms implementation could be greatly simplified; this can also serve as sample trusttext implementation outside of forms code 2006-10-28 21:55:19 +00:00
toyomoyo 6cb34d443d merged replacing studentcanpost with capability 2006-10-23 02:49:05 +00:00
vyshane 583b57b42d Changed <module>_print_recent_activity() functions so that they don't use $isteacher. However, I've left the $isteacher parameter in the functions, for backward compatibility so as not to break thrid party modules. Should we remove the parameter now? 2006-09-24 14:01:50 +00:00
toyomoyo 9c37662f22 replacing deprecated funciton calls with capability calls 2006-09-19 09:16:24 +00:00
toyomoyo 26663a2386 replacing isteacher with viewfullname capability 2006-09-06 02:14:20 +00:00
stronk7 0703d22ede One less reserved word. glossary->comment is out! 2006-09-04 20:37:27 +00:00
toyomoyo 81e956b964 added some capabilities 2006-08-30 08:43:17 +00:00
skodak cf8eaebb06 fixed warning in glossary recent activity from deteted entries 2006-08-26 19:38:32 +00:00
skodak b3e570450f removing some isteacher()s from glossary 2006-08-26 19:19:36 +00:00
skodak 7d8a3cb06a trusttext:
* proposed by Martin Dougiamas
 * implemented by skodak

Usage:
1/ change enabletrusttext to yes in site settings (it is off by default) or set it in config.php
2/ assign moodle/site:trustcontent capability to users whose text submitted in glossary entries, comments, forum posts etc. should not be cleaned == they can use javascript or any other forbidden tags in glossary and forums...

done:
 * core
 * glossary (without proper upgrade)

to do:
 * data cleaning in upgrades
 * forum, blocks and some other places (MD decides)
2006-08-26 13:00:07 +00:00
moodler 0468976c9a SWEEPING CLEANUP
The API was changed slightly so that has_capability now takes the
whole $context object (we almost always have it anyway)

The $kill thing was removed.   If you want to assert a capability
then use:

    require_capability('capname', $context);

with optional variables to modify the error message

Misc bugs here and there also removed and code tidied
2006-08-14 05:55:40 +00:00
moodler dabfd0ed85 Removed tabs 2006-08-09 13:45:49 +00:00
moodler bbbf2d4015 ROLES AND PERMISSIONS - FIRST CHECK-IN
=======================================

WARNING:  DEV IS CURRENTLY VERY UNSTABLE.

This is a mega-checkin of the new Roles system.   A lot of changes have
been made in core and modules.

Currently there are a lot of rough edges and known problems.  We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).

Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
2006-08-08 05:13:06 +00:00