Commit Graph

768 Commits

Author SHA1 Message Date
martinlanghoff 897e0712e8 Comments. 2006-09-28 00:13:07 +00:00
martinlanghoff c0adb54de4 Allow Chinese/Japanese UTF-8 strings to be truncated at character
boundaries instead of word boundaries. (fix MDL-5378)
2006-09-28 00:10:23 +00:00
skodak 6859360cd4 coverted /admin/ to proper /$CFG->admin/ in paths 2006-09-26 21:10:14 +00:00
skodak 9a76d7b9ea fixed autologinguests warning 2006-09-26 06:34:29 +00:00
moodler 73b998684b FIxes related to strange default languages 2006-09-25 06:04:02 +00:00
skodak 7eb0b60a1f debugging and error reporting level fixes and improvements MDL-6671 2006-09-23 09:38:39 +00:00
moodler 9991d157ea Further fixes for MDL-6601 ... that should be complete now. 2006-09-23 06:10:48 +00:00
moodler eaa79489a8 First pass at a fix for MDL-6601 (delete contexts when deleting course) 2006-09-22 17:49:45 +00:00
skodak ba4e0b059d fixed warning caused by missing fields in $course; tweaked mime info for firefox when forcing download - it should use default system mime associations which should be safe in case of firefox. 2006-09-20 17:51:59 +00:00
tjhunt df44078448 Another typo.
A pity, I would love to know what a delect_records function did ;-)
2006-09-20 16:36:40 +00:00
tjhunt 9fd73f0c26 Fixed typo CONTEXT_COUSE -> CONTEXT_COURSE 2006-09-20 16:19:57 +00:00
moodler b0270f84eb Added unset_config as a companion to set_config 2006-09-20 02:17:27 +00:00
toyomoyo 9c37662f22 replacing deprecated funciton calls with capability calls 2006-09-19 09:16:24 +00:00
vyshane f2269f311d Typos 2006-09-19 08:10:46 +00:00
skodak b79da3ac68 moodle/course:managemetacourse is now singular 2006-09-19 06:35:52 +00:00
toyomoyo d76a5a7fed replacing references to user_* tables 2006-09-19 01:44:33 +00:00
skodak 31f267963a MDL-6568 shortname added to roles 2006-09-18 17:40:22 +00:00
skodak 1aad431080 metacourse sync now uses roles, I will continue with fixing of GUIs tomorrow 2006-09-17 22:21:37 +00:00
moodler 9c641bd871 Added email_welcome_message_to_user() to send course welcome emails 2006-09-17 16:04:15 +00:00
skodak 7f5bc80b78 backupdata folder is no longer displayed in list of directories when setting up Directory Resource - partially related to MDL-6280 ; and some other typo fixes; get_directory_list() no accepts also array of exluded files 2006-09-17 06:49:26 +00:00
moodler 5c98bf9e3a Enrolments working better now. The core part is done, just the plugins to go.
The enrolment plugins are now checked from load_user_capability()
2006-09-16 13:59:38 +00:00
toyomoyo ea8158c118 changing sql calls from user_students table to role_assignments table 2006-09-14 09:08:07 +00:00
moodler fa989c3882 Moved debugging() to weblib.php since it's really about output 2006-09-14 04:25:17 +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 bd963c1c7e Fixed up debugging() function so it's more useful. 2006-09-13 08:53:19 +00:00
moodler 1845f8b80e Revamped require_login() function to handle roles better. 2006-09-12 09:31:23 +00:00
toyomoyo 1c45e42e3c adding capabilities 2006-09-11 08:56:23 +00:00
moodler 4ae6d4115f New hook for Moodle 1.7 enrolment plugins 2006-09-11 07:09:41 +00:00
toyomoyo d02eededf7 adding capabilities 2006-09-06 08:55:23 +00:00
moodler be7ed5f8a8 Merged confirmation email fix from stable 2006-09-04 02:30:52 +00:00
gustav_delius 5b3df41fd9 The file countries.php does not exist in lang/en, only in lang/en_utf8. Therefore the fallback default in the function get_list_of_countries() should always be en_utf8. 2006-09-03 11:38:45 +00:00
moodler c4d0753b25 Moving deprecated functions to deprecatedlib.php from moodlelib.php and
some cleanups around the place.

Many of the functions in deprecatedlib.php have been rewritten to work with
the new roles and capabilities so that they can still work as well as possible.
2006-09-03 08:10:10 +00:00
skodak 86a1ba04fd replace all uses of isset($USER->id) with empty() to allow proper operation of $CFG->notloggedinroleid hack 2006-09-02 11:44:04 +00:00
skodak 35a518c5de fixed admin defaults, some warnings during install and added trmporary hack to make $CFG->notloggedinroleid work 2006-09-02 10:03:30 +00:00
toyomoyo 20aeb4b8e3 utf8 migrate support for site with roles active, resolved isstudent legacy problem, implemented $CFG->notloggedinroleid 2006-09-01 09:25:34 +00:00
skodak e1ecc9fbbe imported newer PCLZIP library; added directory restriction to our own security checks 2006-08-30 08:51:57 +00:00
moodler 0e4af1664c New param type, PARAM_SEQUENCE for 5,6,7,8,9 2006-08-29 02:26:37 +00:00
skodak 168fa2c1d1 reverting isguest() changes 2006-08-27 08:10:03 +00:00
skodak 18d8a6a741 isguest() compatible with roles 2006-08-26 18:42:56 +00:00
skodak 9425b25f46 Many bugs and typos fixed in capabilitties and legacy isteacher() and similar functions - not many lines changed but it was a looong coding day.
Roles and capabilities should be usable now and old unconverted code should work too :-D

Tested only in fresh installation - admin, teacher and student roles should sort of work.
2006-08-25 20:12:12 +00:00
tjhunt d3eeba599b Delete stray space. 2006-08-15 16:53:24 +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 bade10e350 Removed all of the "Restricted users" hack because Roles can do it all better. 2006-08-13 07:01:57 +00:00
moodler 5ec8a4f009 Removed tabs 2006-08-09 13:18:33 +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
skodak df77b427d5 check_dir_exists() has new recursive parameter - it should help clean up the restore code a bit and could be handy elsewhere too; tested in both linux and windoze 2006-08-02 19:40:58 +00:00
skodak 3ea3763a18 Bug #6146 - Smiley popup can not be translated; merged from MOODLE_16_STABLE 2006-07-31 10:28:12 +00:00
skodak be933850a7 Bug #6176 - locale setting on config variables page not functioning correctly; merged from MOODLE_16_STABLE 2006-07-30 10:39:21 +00:00
skodak f4f6599085 Bug #6183 - typo in clean_param() description; merged from MOODLE_16_STABLE 2006-07-28 20:57:19 +00:00
moodler fa145ae1af Merged fixes from stable 2006-07-19 10:21:52 +00:00