Commit graph

3353 commits

Author SHA1 Message Date
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
stronk7
88bf021308 Fixed buggy condition. Now defaults are properly calculated by getPHP() 2006-09-12 16:45:46 +00:00
stronk7
8b9b510961 adding the user_lastaccess table 2006-09-12 15:19:10 +00:00
moodler
1845f8b80e Revamped require_login() function to handle roles better. 2006-09-12 09:31:23 +00:00
moodler
b1ce7811ad Fixed MDL-6479 by adding two block columns on admin pages.
Also we now hide the blocks and headers completely until $SITE is properly
defined.
2006-09-12 09:22:27 +00:00
toyomoyo
ae9e4c064e replacing iscreator() calls with capabilty 2006-09-12 08:56:10 +00:00
vyshane
f7cf2f8efd Fixed bug preventing capability upgrades for blocks. Typo :( 2006-09-12 08:25:03 +00:00
moodler
0ad8c7850d Reload default guest 2006-09-12 08:17:33 +00:00
moodler
b0f5523038 Missed one capability for guests 2006-09-12 08:15:07 +00:00
toyomoyo
ab5c904411 added function get_role_users - returns all users assigned this role in this context (or higher) not very useful for participants list because of the count and paging. Could possibly expand it 2006-09-12 07:37:23 +00:00
moodler
8d158ed44f Reload the guest role using new defaults 2006-09-12 07:10:49 +00:00