moodler
|
e58eca7222
|
New capability: moodle/user:viewhiddendetails
|
2006-09-15 14:39:16 +00:00 |
|
tjhunt
|
36075e092d
|
MDL-6041 - Proper fix that eliminates the magic number 99999 when getting lists of studnets. Now, there is no arbitrary upper limit in the datalib functions, and sensible upper limits on pages that display lists of users. However, if you try to get all the site students, then get_students prints a warning in debug mode, telling you that you need to rethink your code.
Also a few more ISNULL()s eliminated.
And a typo role_assignment -> role_assignments.
|
2006-09-15 14:32:35 +00:00 |
|
moodler
|
4b10f08b88
|
Rename CONTEXT_USERID --> CONTEXT_USER for consistency
|
2006-09-15 14:09:16 +00:00 |
|
tjhunt
|
f00b7f8d8e
|
The ISNULL() function is a nasty mysql-ism. The standard SQL syntax is "xxx IS NULL". Even mysql supports this, whereas noone else supports the mysql syntax.
|
2006-09-15 14:00:30 +00:00 |
|
moodler
|
5081e7868d
|
Some SQL fixes
|
2006-09-15 13:51:42 +00:00 |
|
moodler
|
405f64c7fd
|
Fixed some SQL error
|
2006-09-15 13:42:40 +00:00 |
|
moodler
|
2f089dd5f9
|
Guest account could be getting the default role
|
2006-09-15 13:28:18 +00:00 |
|
tjhunt
|
4e5a0168f8
|
Fix typo.
|
2006-09-15 13:18:28 +00:00 |
|
vyshane
|
15dabc3074
|
Merge from 1.6 stable. Small fixes to make xhtml validate.
|
2006-09-15 09:38:46 +00:00 |
|
toyomoyo
|
71dea306b4
|
changing lib functions to work with roles, some functions might not work as expected now
|
2006-09-15 09:08:48 +00:00 |
|
moodler
|
3cc8b355c2
|
Fixed a notice when course->modinfo is empty
|
2006-09-15 06:16:35 +00:00 |
|
moodler
|
e49e61bfe9
|
Updates for visual stuff
|
2006-09-15 06:07:29 +00:00 |
|
vyshane
|
3d5fb99f00
|
Fixed bug in get_records_sql(). This call:
$rs = get_recordset_sql($sql, $limitfrom='', $limitnum='');
should really be:
$rs = get_recordset_sql($sql, $limitfrom, $limitnum);
|
2006-09-15 06:03:32 +00:00 |
|
vyshane
|
e521770c84
|
Small SQL fix. Removed unneeded WHERE clause
|
2006-09-15 03:18:59 +00:00 |
|
moodler
|
ca23ffdb74
|
Don't overwrite capabilities when loading default role
|
2006-09-14 09:41:09 +00:00 |
|
moodler
|
8f8ed475f7
|
Added a new setting called $CFG->defaultuserroleid which defines
the role that ALL users get by default when they log in.
|
2006-09-14 09:39:23 +00:00 |
|
toyomoyo
|
ea8158c118
|
changing sql calls from user_students table to role_assignments table
|
2006-09-14 09:08:07 +00:00 |
|
moodler
|
438c5b8098
|
Removed a PHP4 notice
|
2006-09-14 07:35:53 +00:00 |
|
moodler
|
503eecab20
|
Strip tags from block skip link names
|
2006-09-14 07:00:43 +00:00 |
|
moodler
|
09ad59dcb8
|
Revert to standardwhite if theme is missing MDL-6257
|
2006-09-14 05:15:06 +00:00 |
|
moodler
|
2fca6e0b26
|
Fixing up comments on debugging()
|
2006-09-14 04:31:05 +00:00 |
|
moodler
|
fa989c3882
|
Moved debugging() to weblib.php since it's really about output
|
2006-09-14 04:25:17 +00:00 |
|
toyomoyo
|
61b03dc7a6
|
replacing legacy calls
|
2006-09-14 03:18:55 +00:00 |
|
moodler
|
ea82d6b638
|
CHanged a lot of CFG->debug stuff to use the new debuggin() function
|
2006-09-13 09:45:07 +00:00 |
|
moodler
|
ee437bbc2a
|
The debug variable is now much more flexible
|
2006-09-13 09:22:16 +00:00 |
|
toyomoyo
|
17d6a25e5c
|
adding capabilitiies
|
2006-09-13 09:08:14 +00:00 |
|
moodler
|
bd963c1c7e
|
Fixed up debugging() function so it's more useful.
|
2006-09-13 08:53:19 +00:00 |
|
moodler
|
4b743adbc3
|
Deleted the moodle_error_handler after reading the docs more.
it's not really as useful as I thought it might be
|
2006-09-13 08:41:12 +00:00 |
|
moodler
|
e6c5492368
|
Added a simple moodle_error_hendler function I'm playing with
|
2006-09-13 08:23:30 +00:00 |
|
moodler
|
3d1885af1e
|
Added some checking that should not be necessary but I had notices in one extreme situation
|
2006-09-13 08:09:18 +00:00 |
|
moodler
|
0f161e1fee
|
role_assign() and role_unassign() now call these hooks in each module:
xxx_role_assign()
xxx_role_unassign()
so that modules can do stuff they might need to do (eg subscriptions etc)
|
2006-09-13 08:07:14 +00:00 |
|
moodler
|
d74067e8e7
|
1) Fixed API of require_capability() so it matches has_capability()
2) Extended role_unassign to clean up forum subscriptions etc as well
|
2006-09-13 06:35:25 +00:00 |
|
moodler
|
050c78c41d
|
Missed some $COURSE conversion
|
2006-09-13 05:33:09 +00:00 |
|
moodler
|
cb80265b21
|
Tidying add_to_log slghtly
|
2006-09-13 05:31:12 +00:00 |
|
moodler
|
040e8fd8b8
|
Removed duplicate defines
|
2006-09-13 04:13:50 +00:00 |
|
moodler
|
9103fd10f8
|
Use $COURSE and not the $course hack
|
2006-09-13 04:11:36 +00:00 |
|
vyshane
|
73b73d2101
|
More capabilities tweaks
|
2006-09-13 04:09:31 +00:00 |
|
vyshane
|
48f6bcddd2
|
Fix for blocks capability updates. Somehow missed this commit last night.
|
2006-09-13 04:08:58 +00:00 |
|
vyshane
|
0c4d9f492e
|
moodle/site:manageblocks tweak
|
2006-09-13 03:56:38 +00:00 |
|
stronk7
|
f0b50bbe89
|
Now the "AFTER" clause is supported by add_field()
|
2006-09-12 22:58:04 +00:00 |
|
stronk7
|
48c2be79be
|
Now we support to use the previous attribute in fields declaration
|
2006-09-12 22:56:52 +00:00 |
|
stronk7
|
f521d32b71
|
Two new functions added: add_field() and drop_field()
|
2006-09-12 22:23:00 +00:00 |
|
stronk7
|
0bd921db9e
|
Added support for add_field and drop_field
|
2006-09-12 22:20:50 +00:00 |
|
stronk7
|
0dd87cfa7a
|
Delete one trailing comma
|
2006-09-12 22:15:44 +00:00 |
|
stronk7
|
3ab2610037
|
Added functions to retrieve the proper add and drop field SQL.
|
2006-09-12 22:15:00 +00:00 |
|
stronk7
|
d256743c5b
|
When dropping columns, look for check constraints and drop them too.
|
2006-09-12 22:13:45 +00:00 |
|
stronk7
|
ec68af222e
|
Ops, forgot to delete some debug... :-/
|
2006-09-12 21:30:13 +00:00 |
|
stronk7
|
2a02841762
|
MSSQL needs to drop the default constraint before being able to drop the column
|
2006-09-12 21:24:03 +00:00 |
|
skodak
|
be382aafb3
|
get_component_string() now works for all enrollment plugins MDL-6522
|
2006-09-12 20:03:08 +00:00 |
|
skodak
|
69eb59f28a
|
Changed sort order in Role definition page MDL-6522
|
2006-09-12 19:54:33 +00:00 |
|