stronk7 [Tue, 20 Nov 2007 23:44:08 +0000 (23:44 +0000)]
Applying one missing string. tableofcontentsabbrev. MDL-12071
Merged from MOODLE_19_STABLE
stronk7 [Tue, 20 Nov 2007 23:41:52 +0000 (23:41 +0000)]
Adding one missing string. tableofcontentsabbrev. MDL-12071
Merged from MOODLE_19_STABLE
diml [Tue, 20 Nov 2007 23:37:15 +0000 (23:37 +0000)]
added default values for datetime fields
diml [Tue, 20 Nov 2007 23:22:56 +0000 (23:22 +0000)]
fix table name for deletion of indexes before regeneration
diml [Tue, 20 Nov 2007 23:20:22 +0000 (23:20 +0000)]
fix unchecked foreach loops
sam_marshall [Tue, 20 Nov 2007 18:04:03 +0000 (18:04 +0000)]
MDL-12284 Moved require_js to weblib and improved it so that it works if called during header (also tidied up code)
tjhunt [Tue, 20 Nov 2007 17:52:16 +0000 (17:52 +0000)]
MDL-12286 - 'Save as new question' button ignores the setting in the 'Save in category' dropdown. Merged from MOODLE_19_STABLE.
tjhunt [Tue, 20 Nov 2007 17:31:13 +0000 (17:31 +0000)]
MDL-12172 - Sorry, more fall-out from converting continue buttons to use GET instead of POST. Sometimes, URLs were being passed in with & already repalced by & and we weren't handling that properly. Should now be fixed. Merged from MOODLE_19_STABLE.
tjhunt [Tue, 20 Nov 2007 16:57:22 +0000 (16:57 +0000)]
MDL-12282 - Numerical question type - the units are displayed on the editing form with a stupidly large number of decimal places. Merged from MOODLE_18_STABLE.
tjhunt [Tue, 20 Nov 2007 15:54:34 +0000 (15:54 +0000)]
MDL-12280 - Question bank forgets sort order when adding multiple questions to a quiz. Merged from MOODLE_19_STABLE.
tjhunt [Tue, 20 Nov 2007 15:08:05 +0000 (15:08 +0000)]
MDL-12133 - Errors calling parent::validation in a moodle form subclass because the base class method returns true not an empty array. This patch allow subclasses to start their validate method with
$errors = parent::validation($data, $files);
which is what you naturally want to do if you are used to object oriented programming.
Merged from MOODLE_19_STABLE.
tjhunt [Tue, 20 Nov 2007 14:46:50 +0000 (14:46 +0000)]
Remove a developer debug notice and save a database query. Merged from MOODLE_19_STABLE.
nfreear [Tue, 20 Nov 2007 14:37:58 +0000 (14:37 +0000)]
Follow up for MDL-12256, "Course AJAX has very poor accessibility - ALT text" - IE tooltip/ title hack.
ethem [Tue, 20 Nov 2007 13:22:39 +0000 (13:22 +0000)]
Fix for Canadian Postal Code
http://moodle.org/mod/forum/discuss.php?d=81736
tjhunt [Tue, 20 Nov 2007 12:41:04 +0000 (12:41 +0000)]
MDL-12133 - Errors calling parent::validation in a moodle form subclass because the base class method signature was changed. This patch fixes all calls to parent::validation in the question editing forms. Merged from MOODLE_19_STABLE.
scyrma [Tue, 20 Nov 2007 05:28:33 +0000 (05:28 +0000)]
Makes it possible to confirm users using manual auth system.
toyomoyo [Tue, 20 Nov 2007 05:16:11 +0000 (05:16 +0000)]
fixing header/formatting
moodler [Tue, 20 Nov 2007 05:05:51 +0000 (05:05 +0000)]
Automatic installer.php lang files by installer_builder (
20071120)
toyomoyo [Tue, 20 Nov 2007 04:12:18 +0000 (04:12 +0000)]
MDL-12234, fixing unicode issues with global search
pichetp [Tue, 20 Nov 2007 03:50:28 +0000 (03:50 +0000)]
MDL-12255 Adding questiontext decoding and subquestions validation when editing
pichetp [Tue, 20 Nov 2007 03:48:29 +0000 (03:48 +0000)]
Solving MDL-12063 qtype_questions where left orphans when questions whe deleted or
qtype change
mattc-catalyst [Tue, 20 Nov 2007 02:32:09 +0000 (02:32 +0000)]
MDL-12264 - course/info: check if course is hidden before displaying info about it.
Author: Matt Clarkson <mattc@catalyst.net.nz>
martinlanghoff [Tue, 20 Nov 2007 00:31:40 +0000 (00:31 +0000)]
MDL-12142 mailout-debugger: Now works on Windows too
Switched to use sys_get_temp_dir() to define
which tempdir to use.
martinlanghoff [Tue, 20 Nov 2007 00:18:31 +0000 (00:18 +0000)]
accesslib: has_capability_in_accessdata() respects rdef locality a bit more
With this patch, we respect rdef locality when two roles
assignments in the same context have conflicting rdefs.
In that case, the most local rdef wins.
So RA locality still matters most. If you are a teacher
sitewide and a student in course X, student role trumps
teacher.
For a use case, see the discussion here
http://moodle.org/mod/forum/discuss.php?d=84472
Notes:
- If we wanted to have locality of RDEF trump everything
we can. A comment in this patch shows how.
- I don't know how to reproduce this in pure SQL.
And Also:
This patch also fixes a bug where if CAP_PROHIBIT was set
_and_ another role added to it in the same context, we would
add or substract 1 to CAP_PROHIBIT, and it would lose its magic.
And while at it, tighten the code to avoid casts. All the
ints are unambiguously ints.
stronk7 [Tue, 20 Nov 2007 00:10:05 +0000 (00:10 +0000)]
Some question formating...
Merged from MOODLE_19_STABLE
skodak [Mon, 19 Nov 2007 22:55:39 +0000 (22:55 +0000)]
MDL-12249 fixed distribution for small groups; merged from MOODLE_19_STABLE
skodak [Mon, 19 Nov 2007 21:41:02 +0000 (21:41 +0000)]
MDL-12249 fixed small group ration, can be overriden from config.php now; merged from MOODLE_19_STABLE
skodak [Mon, 19 Nov 2007 20:31:57 +0000 (20:31 +0000)]
MDL-12249 groups UI cleanup and improvements - see tracker for details; merged from MOODLE_19_STABLE
diml [Mon, 19 Nov 2007 20:09:38 +0000 (20:09 +0000)]
fix some keys
nfreear [Mon, 19 Nov 2007 17:22:04 +0000 (17:22 +0000)]
Fixes for bug MDL-12256, "Course AJAX has very poor accessibility - ALT text" (includes white-space cleanup).
nfreear [Mon, 19 Nov 2007 17:21:28 +0000 (17:21 +0000)]
Fixes for bug MDL-12256, "Course AJAX has very poor accessibility - ALT text".
nfreear [Mon, 19 Nov 2007 15:25:16 +0000 (15:25 +0000)]
Initial fix for MDL-12256, "Course AJAX has very poor accessibility - ALT text" - test, imgAttributes.length NOT attributes.length.
sam_marshall [Mon, 19 Nov 2007 10:53:23 +0000 (10:53 +0000)]
MDL-12075 Display individually colour-coded events in calendar rather than random day colours
moodler [Mon, 19 Nov 2007 07:13:02 +0000 (07:13 +0000)]
Merged from 1.9
Improvements to the tabs for assigning and overriding roles. MDL-12120
Tabs are now all on the top row
Tabs have clearer titles
Other help texts improved
moodler [Mon, 19 Nov 2007 06:59:19 +0000 (06:59 +0000)]
Merged fixes for override colouring MDL-12248
scyrma [Mon, 19 Nov 2007 04:44:08 +0000 (04:44 +0000)]
MDL-3632 : this prevents people without mod/forum:viewhiddentimedposts to see hiddentimedposts.
toyomoyo [Mon, 19 Nov 2007 04:36:21 +0000 (04:36 +0000)]
MDL-12218, display course specific role names on override page
toyomoyo [Mon, 19 Nov 2007 04:13:15 +0000 (04:13 +0000)]
changed to get_recordset_sql because get_records forces the first element to be$
martinlanghoff [Mon, 19 Nov 2007 02:43:48 +0000 (02:43 +0000)]
user_login() was not converted to using get_cache_flags().
It was still using the 'old' get_config() interface, so the 'cookie'
set by ntlmsso_finish() wasn't retrieved at all, and the automatic
login always failed.
Signed-off-by: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>
Author: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>
Committer: Martin Langhoff <martin@catalyst.net.nz>
martinlanghoff [Mon, 19 Nov 2007 02:43:34 +0000 (02:43 +0000)]
If the cache flag is not set, it doesn't make sense trying to test its value
Signed-off-by: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>
Author: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>
Committer: Martin Langhoff <martin@catalyst.net.nz>
martinlanghoff [Mon, 19 Nov 2007 02:43:16 +0000 (02:43 +0000)]
Fix typo in ntlmsso_finish()
Signed-off-by: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>
Author: Iñaki Arenaza <iarenuno@eteo.mondragon.edu>
Committer: Martin Langhoff <martin@catalyst.net.nz>
toyomoyo [Mon, 19 Nov 2007 02:25:22 +0000 (02:25 +0000)]
merged fix for MDLSITE-294, needs a forced type cast
mattc-catalyst [Mon, 19 Nov 2007 01:45:45 +0000 (01:45 +0000)]
MDL-12172: fixed get parameters not being submitted in Firefox
Author: Matt Clarkson <mattc@catalyst.net.nz>
toyomoyo [Mon, 19 Nov 2007 01:44:26 +0000 (01:44 +0000)]
changed to get_recordset_sql because get_records forces the first element to be key
toyomoyo [Mon, 19 Nov 2007 01:13:31 +0000 (01:13 +0000)]
making a SQL cross-db compatible
stronk7 [Sun, 18 Nov 2007 17:12:58 +0000 (17:12 +0000)]
Merging unmerged code. MDL-11743 and MDL-11671
iarenaza [Sun, 18 Nov 2007 12:45:21 +0000 (12:45 +0000)]
MDL-11099 and MDL-11655 Don't show external db password in clear
moodler [Sun, 18 Nov 2007 04:36:52 +0000 (04:36 +0000)]
Automatic installer.php lang files by installer_builder (
20071118)
skodak [Sat, 17 Nov 2007 21:21:37 +0000 (21:21 +0000)]
MDL-12231 fixed applying of CFG defaults during initial install phase; merged from MOODLE_19_STABLE
skodak [Sat, 17 Nov 2007 20:55:44 +0000 (20:55 +0000)]
fixed typo throwing warnings during install; merged from MOODLE_19_STABLE
skodak [Sat, 17 Nov 2007 17:41:28 +0000 (17:41 +0000)]
MDL-12041 fixed groupmode flag in cm when mode forced in course; merged from MOODLE_19_STABLE
skodak [Sat, 17 Nov 2007 16:53:39 +0000 (16:53 +0000)]
MDL-10888 parent definition_after_data() must be called too!; merged from MOODLE_19_STABLE
skodak [Sat, 17 Nov 2007 16:37:00 +0000 (16:37 +0000)]
MDL-12221 initialised $output and fixed whitespace; merged from MOODLE_19_STABLE
skodak [Sat, 17 Nov 2007 13:30:15 +0000 (13:30 +0000)]
MDL-12199 problem with "Show advanced" used after pressing of enter in forms; merged from MOODLE_19_STABLE
skodak [Fri, 16 Nov 2007 22:15:25 +0000 (22:15 +0000)]
MDL-12146 merged recent changes from normal item to outcome form; merged from MOODLE_19_STABLE
skodak [Fri, 16 Nov 2007 22:12:04 +0000 (22:12 +0000)]
MDL-12200 fixed problems when no custom user fields defined; merged from MOODLE_19_STABLE
dwoolhead [Fri, 16 Nov 2007 17:03:06 +0000 (17:03 +0000)]
MDL-12226 forum index page not always displaying forum links or subscription buttons as expected
nfreear [Fri, 16 Nov 2007 16:47:54 +0000 (16:47 +0000)]
Fixes bug MDL-12225, Mark up lists correctly in course/lib (accessibility).
dwoolhead [Fri, 16 Nov 2007 16:31:00 +0000 (16:31 +0000)]
MDL-11979 Forum subscriptions loop hole allowing users to subscribe to forums they should not have access to.
mits [Fri, 16 Nov 2007 14:51:34 +0000 (14:51 +0000)]
Removed styles_layout.css from theme oceanblue.
Updated config.php for theme oceanblue.
urs_hunkler [Fri, 16 Nov 2007 14:21:58 +0000 (14:21 +0000)]
merged from 1.9 :: MDL-12221 :: example: adding custom_corners to the info box on the forum page.
urs_hunkler [Fri, 16 Nov 2007 14:19:13 +0000 (14:19 +0000)]
merged form 1.9 :: MDL-12221 :: new CSS rules for the custom_corners boxes.
And MDL-9306 :: splitted comma sepearted rules to 2 separate rules.
urs_hunkler [Fri, 16 Nov 2007 13:33:51 +0000 (13:33 +0000)]
merged from 1.9 :: MDL-12221 :: Added wrapper functions for print_box, print_box_start and print_box_end to be able to add custom_corners to any boxes.
If you call print_custom_corners_box with the same parameters as print_box and custom_corners is enabled you get the custom corners divs within those boxes and can style them accordingly.
skodak [Fri, 16 Nov 2007 07:36:18 +0000 (07:36 +0000)]
MDL-12096 changed label of parent cat, merged from MOODLE_19_STABLE
urs_hunkler [Fri, 16 Nov 2007 07:29:14 +0000 (07:29 +0000)]
merged from 1.9 :: MDL-12045 :: the extra "clearer" div broke the custom_corners theme on IE7. I removed the "clearer" div and added the class "clerafix" to the surrounding coursebox.
moodler [Fri, 16 Nov 2007 05:56:20 +0000 (05:56 +0000)]
MDL-12215 made the advanced search tab more consistent with the interface
toyomoyo [Fri, 16 Nov 2007 04:24:57 +0000 (04:24 +0000)]
MDL-12121, fixing a warning
scyrma [Fri, 16 Nov 2007 03:34:05 +0000 (03:34 +0000)]
Fix to a bug preventing rss feeds from displaying.
toyomoyo [Fri, 16 Nov 2007 03:09:20 +0000 (03:09 +0000)]
MDL-12187, fixing grader report style
toyomoyo [Fri, 16 Nov 2007 02:52:48 +0000 (02:52 +0000)]
MDL-11672, hide hidden assignment descriptions from calendar
nicolasconnault [Thu, 15 Nov 2007 23:27:55 +0000 (23:27 +0000)]
MDL-12182 More grade_item unit tests
skodak [Thu, 15 Nov 2007 22:30:01 +0000 (22:30 +0000)]
MDL-12096 new simple weighted mean aggregation type; merged from MOODLE_18_STABLE
skodak [Thu, 15 Nov 2007 17:32:31 +0000 (17:32 +0000)]
MDL-12146 grade item settings can be now configured as advanced, new advanced defaults, minor tweaks in admintree; merged from MOODLE_18_STABLE
urs_hunkler [Thu, 15 Nov 2007 16:37:44 +0000 (16:37 +0000)]
merged from 1.9 :: MDL-12195 :: added closing '>' in line 157.
skodak [Thu, 15 Nov 2007 15:43:39 +0000 (15:43 +0000)]
MDL-12140 weights/extrapoints are never advanced
mchurch [Thu, 15 Nov 2007 14:05:17 +0000 (14:05 +0000)]
MDL-12016 Category text not being sent to 'create_category_path'.
mchurch [Thu, 15 Nov 2007 13:43:51 +0000 (13:43 +0000)]
MDL-12015 Import question count was wrong.
urs_hunkler [Thu, 15 Nov 2007 12:21:09 +0000 (12:21 +0000)]
merged from 1.9 :: MDL-12191 :: workaround with JavaScript to add "haslayouttabel" class to body.
urs_hunkler [Thu, 15 Nov 2007 12:18:32 +0000 (12:18 +0000)]
merged from 1.9 :: changed the form lable look.
bobopinna [Thu, 15 Nov 2007 08:37:11 +0000 (08:37 +0000)]
MDL-12161 Stripped slashes in LO titles
skodak [Thu, 15 Nov 2007 08:29:12 +0000 (08:29 +0000)]
MDL-12140 category can be selected when adding new items or categories; merged from MOODLE_19_STABLE
toyomoyo [Thu, 15 Nov 2007 07:46:04 +0000 (07:46 +0000)]
MDL-12180, blocks capabilities not appearing when overriding block roles
nicolasconnault [Thu, 15 Nov 2007 06:44:26 +0000 (06:44 +0000)]
MDL-12182 Only testgradeitem.php isn't yet completed.
toyomoyo [Thu, 15 Nov 2007 05:00:44 +0000 (05:00 +0000)]
MDL-8270, full block backup/restore routine with code
scyrma [Thu, 15 Nov 2007 04:04:21 +0000 (04:04 +0000)]
Fix for MDL-10996 : prevent course name from being displayed twice.
scyrma [Thu, 15 Nov 2007 02:39:43 +0000 (02:39 +0000)]
MDL-11401, merged from 19_STABLE
toyomoyo [Thu, 15 Nov 2007 01:18:47 +0000 (01:18 +0000)]
MDL-8330, adding a warning to translators about updating of lang packs
martinlanghoff [Wed, 14 Nov 2007 22:47:30 +0000 (22:47 +0000)]
MDL-9399 - auth/ldap: Strings for NTLM SSO - forgot one
martinlanghoff [Wed, 14 Nov 2007 22:43:56 +0000 (22:43 +0000)]
MDL-9399 auth/ldap: Strings for NTLM SSO
cvs: ----------------------------------------------------------------------
martinlanghoff [Wed, 14 Nov 2007 22:23:45 +0000 (22:23 +0000)]
MDL-12178 auth/ldap: "creators" role assignment now also supports contexts
Now the DNs that indicate a course-creator role can also be contexts.
This way we support one more widely used practice in the weird and
wonderful LDAP world...
martinlanghoff [Wed, 14 Nov 2007 22:17:58 +0000 (22:17 +0000)]
MDL-9399 - auth/ldap NTLM SSO - fix missing global
martinlanghoff [Wed, 14 Nov 2007 22:12:57 +0000 (22:12 +0000)]
MDL-9399 auth/ldap: NTLM temp sessions now use cache_flags
cache_flags is now the apropriate way to manage this kind of temp
data. It gives us time expiry and GC for free, so it's a perfect fit
for the job, as it simplifies the code a bit.
martinlanghoff [Wed, 14 Nov 2007 22:12:25 +0000 (22:12 +0000)]
MDL-9399 auth/ldap: NTLM SSO - fix hardcoded strings
From Iñaki Arenaza
And here is a little patch with the last remaining non-traslated
strings (unless I missed something).
martinlanghoff [Wed, 14 Nov 2007 22:12:07 +0000 (22:12 +0000)]
MDL-9399 auth/ldap: NTLM SSO - move textlib conversion earlier
From Iñaki Arenaza - fix for
... I forgot to put the textlib conversion
call before the block of code that uses $extusername, so it
completely breaks the user validation process.
martinlanghoff [Wed, 14 Nov 2007 22:11:48 +0000 (22:11 +0000)]
MDL-9399 auth/ldap: NTLM SSO - cleanup of sesskey handling
Fix a bug in ntlmsso_finish(), and tighten up user_login() to avoid a
pointless DB lookup if the password doesn't match the sesskey.
Hopefully this makes things work again...
(thanks I~naki for the testing!)
martinlanghoff [Wed, 14 Nov 2007 22:11:35 +0000 (22:11 +0000)]
MDL-9399 auth/ldap: NTLM SSO - use sesskey and other tidyups
Several tidyups:
- use moodle_strtolower() for utf-8 correctness
- use sesskey as the key instead of IP addr to support
proxied users
- clean the sesskey after success!
- pull timeout out to a constant: AUTH_NTLMTIMEOUT
martinlanghoff [Wed, 14 Nov 2007 22:10:21 +0000 (22:10 +0000)]
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.
martinlanghoff [Wed, 14 Nov 2007 22:09:59 +0000 (22:09 +0000)]
MDL-9399 auth/ldap: Tighten NTLM AD checks to the appropriate OU
From Iñaki Arenaza...
Right now, if someone logs in via NTLM magic, we don't check if that
user is inside the contexts specified in the LDAP settings. I mean,
if I want to restrict my Moodle site to those users inside a given OU
or subtree of my LDAP directory, with the current code any valid user
in my whole AD domain (and if we are using a GC as the LDAP server,
the whole forest) can log in. We should check that the user is inside
one of the configured contexts before allowing his/her to log in.
Something along the lines of the attached patch could do it.
martinlanghoff [Wed, 14 Nov 2007 22:09:45 +0000 (22:09 +0000)]
MDL-9399 auth/ldap: ntlmsso_finish() now completes the user session setup
As Iñaki points out, ntlmsso_finish() needs to do all the setup that
login/index.php would do for a user once auth succeeds. With this
patch, the session setup is complete so the logon is usable.
martinlanghoff [Wed, 14 Nov 2007 22:09:29 +0000 (22:09 +0000)]
MDL-9399 auth/ldap: NTLM redirect only on initial GET
We only want to redirect when users are being shown the login page (on
GET) but not when users are POSTing to it, actually trying to login.