Commit Graph

1004 Commits

Author SHA1 Message Date
moodler 004e11794a Merged MDL-13544 Removed logging of cleanremoteaddr from logs 2008-02-20 07:02:14 +00:00
skodak b03f7215c7 MDL-12382 allow admins to access any course - including courses where they have guest role and course does not allow guests; merged from MOODLE_19_STABLE 2008-02-18 23:40:21 +00:00
skodak 5f431c1bad MDL-12382 allow admins to access any course - including courses where they have guest role and course does not allow guests; merged from MOODLE_19_STABLE 2008-02-18 23:34:38 +00:00
skodak 93964e1aeb MDL-13302 gradebook data deleted now in remove_course_contents() - it makes better sense to have it there; merged from MOODLE_19_STABLE 2008-02-18 23:10:52 +00:00
skodak 0f7719da37 big big sorry, forgotten old debug code that sends all mails to null; merged from MOODLE_19_STABLE 2008-02-18 12:36:17 +00:00
skodak 61460dd631 MDL-13192 major stats cleanup patch - see tracker for more details; merged from MOODLE_19_STABLE 2008-02-16 18:33:50 +00:00
skodak eebcab6107 MDL-13484 peak memory used perf info added 2008-02-15 11:32:34 +00:00
skodak bbdf7510a6 MDL-13483 new hidden $CFG->noemailever setting to block sending of all emails - for dev sites only, set in config.php if needed; merged from MOODLE_19_STABLE 2008-02-15 10:47:02 +00:00
scyrma a040b67d73 merge from 19_STABLE 2008-02-06 06:18:06 +00:00
scyrma 4928b5cfe5 merge from 19_STABLE 2008-02-04 06:45:56 +00:00
stronk7 63971f8b40 Detect used scales in course outcomes too. MDL-13307 ; merged from 19_STABLE 2008-02-03 16:40:34 +00:00
skodak 6a5dc27c18 MDL-13316 added static cache for time zone info; merged from MOODLE_19_STABLE 2008-02-03 16:01:33 +00:00
stronk7 14656d15a0 Respect $showfeedback when deleting groups and groupings. Merged from 19_STABLE 2008-02-02 20:43:18 +00:00
skodak 3a6c690a86 MDL-13239 improved smtp bulk setting based on feedback from Gary; merged from MOODLE_19_STABLE 2008-02-02 16:22:47 +00:00
skodak c2f6fe2fbf MDL-13239 smtp bulk sending; merged from MOODLE_19_MERGED 2008-02-01 07:05:58 +00:00
poltawski fc4b2decc0 MDL-13179 - avoid calling get_admin() when unecessary.
It uses a relatively complex query and its not needed except
for a minority of users so we may as well avoid it..
merged from MOODLE_19_STABLE
2008-01-26 17:00:03 +00:00
poltawski efae27bb45 MDL-13068 - fix typo causing course delete to fail
merged from MOODLE_19_STABLE
2008-01-25 21:09:36 +00:00
nicolasconnault 1bf7621ca4 MDL-13103 merging from 1.9 2008-01-25 13:00:45 +00:00
skodak fd6fefb790 MDL-13084 SORT_LOCALE_STRING not defined < PHP 4.4.0; merged from MOODLE_19_STABLE 2008-01-21 18:18:07 +00:00
skodak ff396fd597 MDL-13063 fixed comments and changeme password reset; merged from MOODLE_19_STABLE 2008-01-19 20:05:21 +00:00
mjollnir_ 6a91692518 Merged from MOODLE_19_STABLE: MDL-13001 - adding support for language files in local/ directory. 2008-01-15 01:40:02 +00:00
skodak 3e475991f9 MDL-12793 PARAM_HOST incorrect cleaning; merged from MOODLE_19_STABLE 2008-01-01 17:23:05 +00:00
poltawski 1a4de3618b MDL-4692 - initalise var, merged from MOODLE_19_STABLE 2007-12-28 22:56:42 +00:00
mchurch 19c8cf7917 MDL-12703 - Use the 'welcometocourse' language string if there is no 'welcomemessage' property set in the course object. Currently, there does not seem to be any code or data items that would set this property. 2007-12-28 17:14:01 +00:00
skodak e69499c8df MDL-12729 show recoverable fatal errors in DEBUG_ALL and DEBUG_DEVELOPER; merged from MOODLE_19_STABLE 2007-12-26 13:33:25 +00:00
skodak 4ef8e74c53 MDL-12725 remove_dir() does not return correct status and fails if dir does not exist + improved sanity test in check_dir_exists(); merged from MOODLE_19_STABLE 2007-12-24 21:16:30 +00:00
moodler e0e322d9e7 Something really old we'll need later 2007-12-20 06:45:32 +00:00
skodak 9c305ba15a MDL-12655 set_config() should cast values to string because get_config does that too; merged from MOODLE_19_STABLE 2007-12-19 22:32:43 +00:00
skodak 220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +00:00
skodak 6265d4630b MDL-12103 new config option for mail newline chars; merged from MOODLE_19_STABLE 2007-12-17 23:44:25 +00:00
skodak 3f6ba95bc6 MDL-12570 option to disable lang autodetect from browser; merged from MOODLE_19_STABLE 2007-12-15 13:28:01 +00:00
sam_marshall d5fe85d5cc MDL-12431 Added ability for filters to contain lang files 2007-12-04 11:47:28 +00:00
toyomoyo 0c07a1c458 MDL-12399, shorten_text() truncates all closing tags 2007-12-04 05:10:12 +00:00
skodak 0b5a80a1a5 MDL-7028 rewritten course reset + forum role_unassign cleanup fixes; merged from MOODLE_19_STABLE 2007-11-29 14:43:04 +00:00
scyrma 61b420ace2 Replaces 'GMT' by 'UTC' where it showed in user interface and fixes MDL-9164. 2007-11-22 06:28:58 +00:00
martinlanghoff 6fd511eb1c MDL-9399 moodlelib: set_config() deletes config entries if the value is NULL
New! Improved! If you pass NULL as the value, it will delete the
config entry for you.
2007-11-14 22:10:21 +00:00
martinlanghoff 8f9e1d2c4d accesslib: Move check_enrolment_plugins() to complete_user_login()
... where it belongs ;-)

load_all_capabiloties() gets called at several points where we don't
want to be re-querying the enrolment backends. It needs to  be called
before load_all_capabilities() and only by callers that are setting up
a logon session.

Those callers need to be calling complete_user_login() anyway, as they
need to set the Moodle cookie, log the logon action, etc. In fact,
those callers duplicate a lot of that code already.

The callers that don't duplicate code for the login are actually the
cases where the backend enrolment plugins should not be queried.

To be followed by callers cleanup...
2007-11-14 22:04:05 +00:00
martinlanghoff a238e822a2 login/index, moodlelib: move session setup logic to complete_user_login()
Move most of the user session setup logic from login/index.php to
complete_user_login().
2007-11-14 22:03:46 +00:00
stronk7 23610d6ff7 Adding lang support within profile fields to make them selfcontained.
Merged from MOODLE_19_STABLE
2007-11-09 19:11:40 +00:00
skodak 6d11d0ee0e MDL-12020 can not bulk delete users with the same email - new username collision 2007-11-04 13:51:26 +00:00
stronk7 5fab4931b4 Changed check_dir_exists() behaviour to be more robust
and to work better when used recursively under sites
with open_basedir enabled. Credit goes to René Samselnig. MDL-11437

Merged from MOODLE_19_STABLE
2007-11-02 09:53:32 +00:00
nicolasconnault 98a85772f5 MDL-11912 Creating 1000's layer directory first, then userid directory: no need for recursion 2007-11-01 08:45:30 +00:00
skodak 18f2700959 MDL-11904 deny/accept Email settings conflict with text - now .example.com means all subdomains 2007-10-29 20:04:14 +00:00
skodak 1504e26135 MDL-11927 fixed cookiepaths; patch by Kevin 2007-10-28 14:20:20 +00:00
nicolasconnault ddaadc7c78 MDL-8605 More changes to upgrade and restore, and some unit tests with db and rs mock objects 2007-10-12 19:13:18 +00:00
nicolasconnault 56a1a88228 MDL-8605 New user directories implemented 2007-10-11 09:01:29 +00:00
nicolasconnault b7064779f5 Updated copyright notice in header 2007-10-10 05:25:14 +00:00
skodak b51ece5b3b MDL-11660
* user_lastaccess deleted when deleting course
* rewritten deleting of contexts - does not use get_context_instance() anymore because it is much more strict now
* added deleting of grade_letters and settings when deleting course
2007-10-09 16:07:15 +00:00
skodak 128f098418 MDL-11640
* improved handling of dirty contexts in general - caching, switching in cron, marking, loading, etc.
* role_assing() and role_unassign() now marks dirty contexts because we use has_capability() in this function - we can not do it later outside to speedup bulk operations
* fixed some inline docs
* fixed notice from rs closing
* removed cached $CONTEXT from has_capability() - $context is now required parameter; this was hiding serious bugs when context did not exist or ppl passed false as parameter
* removed some ===, we can not use these on function parameters - we must support ints, strings, '', nulls, etc. - this could be a source of really dangerous bugs in future
* some other improvements and fixes - documented inline
2007-10-09 12:49:54 +00:00
stronk7 4b3f69957e Modify notify_login_failures() for better scale. MDL-11661 2007-10-09 00:11:07 +00:00