Commit graph

4529 commits

Author SHA1 Message Date
sam_marshall
62eb0371dc MDL-7250 merged from stable 2006-10-27 16:27:28 +00:00
toyomoyo
4bda5c717c merged, taking care of a warning 2006-10-27 02:15:02 +00:00
moodler
2f32eed1ea Merged fixes from stable for MDL-7229 (opentogoogle capabilities) 2006-10-26 14:55:45 +00:00
ikawhero
74807b43f3 Adding extra param fields to the user_info_field table to allow field type
plugins to store data. Plus a description field.
2006-10-26 11:07:25 +00:00
moodler
922633bd28 Merged from stable
Added a top-level cache to has_capability() to make it perform better
in cases where it's called a lot with repetitive values (which happens
a lot in things like forum mailouts) with only a small memory cost.
2006-10-26 09:43:58 +00:00
skodak
58e8f85ba6 Cron.php workaround for IE & RFC2616 - MDL-7221; merged from MOODLE_17_STABLE 2006-10-26 08:55:56 +00:00
moodler
92309430b8 Merged get_record caching from MDL-7196 in stable (thanks sam!) 2006-10-26 07:57:07 +00:00
vyshane
c0a35ad61e Merged from 1.7 2006-10-26 07:45:00 +00:00
jamiesensei
effa85f482 added new form element class 'format' for adding format drop down box to forms. 2006-10-26 07:02:20 +00:00
martinlanghoff
7ca774ad51 lib/locallib: changed local db upgrades now xmldb friendly (like lib/db)
Author: Jonathan Harker <jonathan@catalyst.net.nz>
2006-10-26 04:18:23 +00:00
toyomoyo
efb5888416 merged, fixing a bug where context with an override and assignment is adding up capability 2006-10-26 03:57:34 +00:00
skodak
90bbe68955 MDL-7190 fixed wrong closing ) in cache md5 calculation, sorry! merged from MOODLE_17_STABLE 2006-10-25 23:18:40 +00:00
toyomoyo
5a412dbf8f merged, added new config variables to control what roles get shown in the grade book 2006-10-25 08:51:26 +00:00
moodler
21c9bace87 Merged some recent changes from stable 2006-10-25 08:38:14 +00:00
toyomoyo
2851ba9b67 merged, using limited fields instead of u.* 2006-10-25 07:20:28 +00:00
toyomoyo
9fccc08003 fix in load_user_capability() merged when 2 contexts in overrides are not related 2006-10-25 03:47:59 +00:00
skodak
d53ca6ad40 Strip ##TRUSTTEXT## when not in developer debug mode MDL-7190; minor format_text speedup; changed in md5 text cache calculation; merged from MOODLE_17_STABLE 2006-10-24 22:19:41 +00:00
skodak
72f9446056 select_color.php popup should specify charset MDL-7193; patch by Hiroto Kagotani; merged from MOODLE_17_STABLE 2006-10-24 21:39:43 +00:00
skodak
00e12c7332 fixed When unassigning a role, forum_role_unassign unsubscribes the user even if you have other roles there MDL-7120; merged from MOODLE_17_STABLE 2006-10-24 20:22:30 +00:00
stronk7
5fd4e46dbd Dropping some hardocded "mdl" prefixes. MDL-7202
Merged from MOODLE_17_STABLE
2006-10-24 18:29:34 +00:00
jamiesensei
2c41289045 added a method to return javascript to select form element with first error for use in focus in print_header 2006-10-24 11:05:50 +00:00
vyshane
ea003a2338 Merged from 1.7. 2006-10-24 09:42:06 +00:00
vyshane
2469f7ea85 Merged from 1.7 2006-10-24 08:11:38 +00:00
skodak
bcdb0f193d fixed risks associated with main capabilitites MDL-7174; merged from MOODLE_17_STABLE 2006-10-24 08:02:26 +00:00
moodler
cf36da6429 FIxed problem which was unenrolling some assigns at the site level! MDL-7189 2006-10-24 07:07:54 +00:00
vyshane
929089e754 Merged from 1.7 2006-10-24 03:26:55 +00:00
stronk7
422770d8cb Moving deprecated uses of sql_paging_limit() to the new $limitfrom,
$limitnum parameters in all the get_recordXXX() functions. MDL-7167

Merged from MOODLE_17_STABLE
2006-10-23 23:00:18 +00:00
skodak
ce5ce1369f Excel export returns a zero bytes file when system temp not writable MDL-7176; merged from MOODLE_17_STABLE 2006-10-23 19:26:20 +00:00
skodak
6a57abf8f7 error message when adding a link in editor MDL-7180 ; merged from MOODLE_17_STABLE 2006-10-23 18:31:08 +00:00
stronk7
92602651dc Now insert_record() is using $db->GenID() to retrieve
sequence numbers for Oracle. Just wondering if the same
function should be used by PostgreSQL too. MDL-7183

Merged from MOODLE_17_STABLE
2006-10-23 17:46:08 +00:00
stronk7
37c47abaca Suppress all the uses of LIMIT in the get_field_sql() calls. MDL-7173
Merged from MOODLE_17_STABLE
2006-10-23 16:03:52 +00:00
moodler
2f1a42481d This new function called load_all_capabilities() should be used whenever
you want to completely reload the capabilities for the current user.

Basically it will deal nicely with the default site-wide permissions
depending on the current user.

More background in the comments on MDL-6963

Merged from stable
2006-10-23 15:17:31 +00:00
moodler
18894ee462 Fixed &nbsp characters MDL-7179 2006-10-23 13:42:23 +00:00
stronk7
f96a5db1c4 strip "old" harcoded "limit" clauses from the sql passed and
debug about them. MDL-7173

Merged from MOODLE_17_STABLE
2006-10-23 07:46:10 +00:00
moodler
b1f318a67f Merged guest key enrolment fix from stable MDL-6881 2006-10-23 06:38:15 +00:00
stronk7
b9c3b8c734 Prevent MSSQL to return from insert_record() before
trying to execute the updating of LOBs.

Merged from MOODLE_17_STABLE
2006-10-23 00:01:57 +00:00
stronk7
c1bf1b0073 Debugging sql_paging_limit() as deprecated and
enforcing get_field_sql() to return 1 record max

Merged from MOODLE_17_STABLE
2006-10-22 23:21:59 +00:00
stronk7
55d3af6f3a Killing all sql_paging_limit() uses
Merged from MOODLE_17_STABLE
2006-10-22 22:58:29 +00:00
stronk7
cb4c207832 Adding limitfrom and limitnum parameters to a bunch of
rarely executed functions...

Merged from MOODLE_17_STABLE
2006-10-22 22:37:30 +00:00
moodler
721d14cbfe Merged fixes for recent activity from stable MDL-7134 2006-10-22 07:42:04 +00:00
skodak
013f2e7cd9 fix has_capability() to work when $nomoodlecookie = true; MDL-7156 - needed for RSS file.php that is serving feeds; merged from MOODLE_17_STABLE 2006-10-21 20:42:50 +00:00
stronk7
8914508a4b Prevent add_field() to work if we are adding one not null field
to one non-empty table without specifying its default value.

Merged from MOODLE_17_STABLE
2006-10-21 18:19:47 +00:00
moodler
81cc8046c4 Merged My Courses fixes from stable 2006-10-21 16:36:31 +00:00
stronk7
04c9f8dcc2 One typo (!==) was preventing defaults to be properly calculated for integers.
Thanks to Nigel McNie for being on that!

Merged from MOODLE_17_STABLE
2006-10-21 16:36:16 +00:00
moodler
49e6751073 Make sure LAMS is off if we don't need it (merged from stable) 2006-10-21 16:14:27 +00:00
moodler
2176adf169 Merged some checks from stable 2006-10-21 14:53:47 +00:00
vyshane
286e1f0e18 Merged from 1.7 2006-10-20 03:18:06 +00:00
toyomoyo
ac57f76122 merged fox for MDL-7113, removing DISTINCT on TEXT field 2006-10-20 02:44:22 +00:00
toyomoyo
207355b438 merged, setting $CFG->unicodedb after converting db to unicode. Chaning the order of if clause to same some sqls 2006-10-20 02:08:21 +00:00
mjollnir_
722c3bfede error reporting for xmldb (credit: Nigel McNie <nigel@catalyst.net.nz>) 2006-10-19 23:30:28 +00:00