moodle.git
14 years agoChanged CONTEXT_SITE to CONTEXT_SYSTEM MDL-6506
moodler [Tue, 26 Sep 2006 03:57:05 +0000 (03:57 +0000)]
Changed CONTEXT_SITE to CONTEXT_SYSTEM   MDL-6506

14 years agoBrushed up theme oceanblue.
mits [Tue, 26 Sep 2006 03:20:40 +0000 (03:20 +0000)]
Brushed up theme oceanblue.

14 years agoAutomatic installer.php lang files by installer_builder (20060926)
moodler [Tue, 26 Sep 2006 02:47:16 +0000 (02:47 +0000)]
installer.php lang files by installer_builder (20060926)

14 years agoFixed bug in forum_make_mail_post()
vyshane [Tue, 26 Sep 2006 02:02:27 +0000 (02:02 +0000)]
Fixed bug in forum_make_mail_post()

14 years agofixing missing $
toyomoyo [Tue, 26 Sep 2006 01:50:17 +0000 (01:50 +0000)]
fixing missing $

14 years agoadding roles support for restore
toyomoyo [Tue, 26 Sep 2006 01:43:07 +0000 (01:43 +0000)]
adding roles support for restore

14 years agoFixed visibility.
mits [Tue, 26 Sep 2006 01:38:17 +0000 (01:38 +0000)]
Fixed visibility.

14 years agoupdate enrol/ldap to work with roles.
mjollnir_ [Tue, 26 Sep 2006 01:31:33 +0000 (01:31 +0000)]
update enrol/ldap to work with roles.
Credit: Alastair Pharo <alastair@catalyst.net.nz>

1) Some config settings have changed (ones that related specifically to
teachers and students).  There is a check in place however to migrate
old configurations to new ones.

2) Perviously two syncs happened - one for students, one for teachers.
Now sync gets called the same number of times as there are roles.
Those roles that have config settings associated with them then run
through all the records.  This means syncing takes longer the more
roles you configure (which is expected anyway I suppose).

14 years agoupdate enrol/database to use roles.
mjollnir_ [Tue, 26 Sep 2006 01:30:32 +0000 (01:30 +0000)]
update enrol/database to use roles.
Credit: Alastair Pharo <alastair@catalyst.net.nz>

Database
--------

1) This plugin previously only worked for students.  I have made it so
that you can _optionally_ specify a third column in your external
database that contains some kind of role information (similar to the
other two fields, you can choose any column in the mdl_role table
to map to).  If you do this, then the code loops over for each different
kind of role and queries the external database.

2) There is a *slight* problem to be aware of, if a moodle
configuration was upgraded to use the new role columns, then downgraded
again, some roles might get left behind in the database when the
large-scale sync thing goes through (that is, record pruning doesn't
scale back quite properly). These would be cleaned away by
setup_enrolments at login time, however, and the scenario was unlikely
enough for me to decide to leave it for now.

3) If you don't have role columns there is a 'default role' setting
that you can set (made by Martin D).  This will only be obeyed when no
role columns are specified.  If this is set to 'default', then the
course default role is used, on a per-course basis (which usually
means student apparently).

4) From (3), my understanding is that if no config settings are
changed, and the default role for all upgraded courses is student, that
a smooth upgrade to 1.7 will occur for users of the database enrolment
plugin.

14 years agoHere's a little patch for auth/ldap/lib.php... just stops some
mjollnir_ [Tue, 26 Sep 2006 01:26:27 +0000 (01:26 +0000)]
Here's a little patch for auth/ldap/lib.php... just stops some
errors from popping up.
Credit: Alastair Pharo <alastair@catalyst.net.nz>

14 years agofixing the participants report to work with roles
mjollnir_ [Tue, 26 Sep 2006 01:23:57 +0000 (01:23 +0000)]
fixing the participants report to work with roles

14 years agoFix for typo MDL-6537
moodler [Tue, 26 Sep 2006 01:11:53 +0000 (01:11 +0000)]
Fix for typo MDL-6537

14 years agoFixed display of files
stronk7 [Mon, 25 Sep 2006 23:09:16 +0000 (23:09 +0000)]
Fixed display of files

14 years agoAdded one woody style for all the admin fieldsets
stronk7 [Mon, 25 Sep 2006 22:57:20 +0000 (22:57 +0000)]
Added one woody style for all the admin fieldsets

14 years agoMinor changes to improve behaviour of selections.
stronk7 [Mon, 25 Sep 2006 22:53:39 +0000 (22:53 +0000)]
Minor changes to improve behaviour of selections.

14 years agoOps! I forgot to commit this 2 days ago! Now a lot of
stronk7 [Mon, 25 Sep 2006 22:48:43 +0000 (22:48 +0000)]
Ops! I forgot to commit this 2 days ago! Now a lot of
data fields will be null!

14 years agoPrevent NOT NULL fields to have one DEFAULT NULL clause
stronk7 [Mon, 25 Sep 2006 21:44:21 +0000 (21:44 +0000)]
Prevent NOT NULL fields to have one DEFAULT NULL clause

14 years agoSome notes:
stronk7 [Mon, 25 Sep 2006 21:37:29 +0000 (21:37 +0000)]
Some notes:

- Foreign keys are really cool (at the XMLDB Editor). Define them as necessary
  as they allow as one "formal" structure of the DB. They won't cause problems
  on generation, mainly because only the underlying index will be created.
- Please, put comments inside each table/field/key/index field, mainly because
  XML comments will be deleted if the file is edited by
- The XMLDB Editor. Please use it ;-)
- Also, one unique index was wrong in the XML file, fixed now.

14 years agofixing a string that referred to students and teachers in the config settings for...
mjollnir_ [Mon, 25 Sep 2006 20:59:00 +0000 (20:59 +0000)]
fixing a string that referred to students and teachers in the config settings for stats

14 years agomajor cleanup of unsupported and legacy external pages in admin/; created new hidden...
skodak [Mon, 25 Sep 2006 20:22:55 +0000 (20:22 +0000)]
major cleanup of unsupported and legacy external pages in admin/; created new hidden unsupported category; some other minor fixes and changes

14 years agoSome more strings added...related with the View PHP utility
stronk7 [Mon, 25 Sep 2006 19:26:16 +0000 (19:26 +0000)]
Some more strings added...related with the View PHP utility

14 years agomoodle specific developer debug messages disabled in admin/dbperformance.php page...
skodak [Mon, 25 Sep 2006 19:05:04 +0000 (19:05 +0000)]
moodle specific developer debug messages disabled in admin/dbperformance.php page, because they might interfere with frames

14 years agoXMLDB editor now has admin-tree block
skodak [Mon, 25 Sep 2006 18:29:50 +0000 (18:29 +0000)]
XMLDB editor now has admin-tree block

14 years agoNow generators support to add/drop column defaults
stronk7 [Mon, 25 Sep 2006 18:22:06 +0000 (18:22 +0000)]
Now generators support to add/drop column defaults

14 years agoadmin/upgradesettings.php is now proper hidden external page with correct breadcrums ;-)
skodak [Mon, 25 Sep 2006 18:21:59 +0000 (18:21 +0000)]
admin/upgradesettings.php is now proper hidden external page with correct breadcrums ;-)

14 years agoNow the tests are performed with real data (2 records). Added 4
stronk7 [Mon, 25 Sep 2006 18:20:08 +0000 (18:20 +0000)]
Now the tests are performed with real data (2 records). Added 4
more tests to check compatibility of set/drop defaults...

14 years agochange from UNIQUE KEY to UNIQUE INDEX
sam_marshall [Mon, 25 Sep 2006 17:49:33 +0000 (17:49 +0000)]
change from UNIQUE KEY to UNIQUE INDEX

14 years ago(prev. wiki fix) Fixed broken constant defines
sam_marshall [Mon, 25 Sep 2006 17:47:35 +0000 (17:47 +0000)]
(prev. wiki fix) Fixed broken constant defines

14 years agofixed hidden misc sectionin admin tree block, sorry
skodak [Mon, 25 Sep 2006 17:44:43 +0000 (17:44 +0000)]
fixed hidden misc sectionin admin tree block, sorry

14 years agoWiki enhancement: edit locking (uses AJAX)
sam_marshall [Mon, 25 Sep 2006 17:42:32 +0000 (17:42 +0000)]
Wiki enhancement: edit locking (uses AJAX)

14 years agoUpdated IMS Enterprise enrolment to Moodle 1.7 role infrastructure - MDL-6656
danstowell [Mon, 25 Sep 2006 17:21:07 +0000 (17:21 +0000)]
Updated IMS Enterprise enrolment to Moodle 1.7 role infrastructure - MDL-6656

14 years agoUpdated IMS Enterprise enrolment to Moodle 1.7 role infrastructure
danstowell [Mon, 25 Sep 2006 16:58:06 +0000 (16:58 +0000)]
Updated IMS Enterprise enrolment to Moodle 1.7 role infrastructure

14 years agoFile had a UTF-8 BOM at the start, was causing problems, now removed
sam_marshall [Mon, 25 Sep 2006 14:59:21 +0000 (14:59 +0000)]
File had a UTF-8 BOM at the start, was causing problems, now removed

14 years agoadded styles_form to $DEFAULT_SHEET_LIST part of the code necessary so that every...
jamiesensei [Mon, 25 Sep 2006 14:56:45 +0000 (14:56 +0000)]
added styles_form to $DEFAULT_SHEET_LIST part of the code necessary so that every theme loads styles_form

14 years agoFixed some width="*" in layout tables
moodler [Mon, 25 Sep 2006 14:40:26 +0000 (14:40 +0000)]
Fixed some width="*" in layout tables

14 years agoRemoved trailing blank line at end of file (was breaking things)
sam_marshall [Mon, 25 Sep 2006 14:35:41 +0000 (14:35 +0000)]
Removed trailing blank line at end of file (was breaking things)

14 years agoAdded some form-groups on the htmleditor page
moodler [Mon, 25 Sep 2006 14:34:33 +0000 (14:34 +0000)]
Added some form-groups on the htmleditor page

14 years agoCleaning up the id and class for each setting
moodler [Mon, 25 Sep 2006 14:18:16 +0000 (14:18 +0000)]
Cleaning up the id and class for each setting

14 years agofixed quoting error
skodak [Mon, 25 Sep 2006 14:15:55 +0000 (14:15 +0000)]
fixed quoting error

14 years agoimproved handling of resource file/directory references when renaming and deleting...
skodak [Mon, 25 Sep 2006 14:12:46 +0000 (14:12 +0000)]
improved handling of resource file/directory references when renaming and deleting files in file manager. It is now fully configurable too. MDL-6132

14 years agoChanged to require_capability where possible
vyshane [Mon, 25 Sep 2006 13:14:50 +0000 (13:14 +0000)]
Changed to require_capability where possible

14 years agoAdded strings for Trusted Content
moodler [Mon, 25 Sep 2006 13:14:40 +0000 (13:14 +0000)]
Added strings for Trusted Content

14 years agoBug fixes
vyshane [Mon, 25 Sep 2006 13:05:18 +0000 (13:05 +0000)]
Bug fixes

14 years agoFixed display of times in admin settings using form-group
moodler [Mon, 25 Sep 2006 12:48:07 +0000 (12:48 +0000)]
Fixed display of times in admin settings using form-group

14 years ago'added CSS for admin pages'
urs_hunkler [Mon, 25 Sep 2006 11:59:00 +0000 (11:59 +0000)]
'added CSS for admin pages'

14 years ago'separated CSS properties to color/fonts/layout/'
urs_hunkler [Mon, 25 Sep 2006 11:56:45 +0000 (11:56 +0000)]
'separated CSS properties to color/fonts/layout/'

14 years agoQuick fix to the me() fix to the redirect function (for relative redirects).
sam_marshall [Mon, 25 Sep 2006 11:23:15 +0000 (11:23 +0000)]
Quick fix to the me() fix to the redirect function (for relative redirects).

14 years ago'added general settings for items within .form-groups to display:inline and float...
urs_hunkler [Mon, 25 Sep 2006 11:22:36 +0000 (11:22 +0000)]
'added general settings for items within .form-groups to display:inline and float:none'

14 years agomoved code turning on pear error printing if in debug mode to the top of formslib.php
jamiesensei [Mon, 25 Sep 2006 11:08:44 +0000 (11:08 +0000)]
moved code turning on pear error printing if in debug mode to the top of formslib.php

14 years ago'added styling for textarea in adminsetting pages'
urs_hunkler [Mon, 25 Sep 2006 10:59:18 +0000 (10:59 +0000)]
'added styling for textarea in adminsetting pages'

14 years agoFixes bug MDL-6685 (Breadcrumb separator, only certain fonts support &#x25BA;).
nfreear [Mon, 25 Sep 2006 10:35:41 +0000 (10:35 +0000)]
Fixes bug MDL-6685 (Breadcrumb separator, only certain fonts support &#x25BA;).

14 years ago'added CSS for statsruntimestarthour to place hour and minute beside each other'
urs_hunkler [Mon, 25 Sep 2006 09:44:31 +0000 (09:44 +0000)]
'added CSS for statsruntimestarthour to place hour and minute beside each other'

14 years agoFIxed some XHTML notices
moodler [Mon, 25 Sep 2006 09:32:25 +0000 (09:32 +0000)]
FIxed some XHTML notices

14 years ago'added float-left for form-group'
urs_hunkler [Mon, 25 Sep 2006 09:13:04 +0000 (09:13 +0000)]
'added float-left for form-group'

14 years agorestore is NOT WORKING!!! role assignment and capability overrides are not in
toyomoyo [Mon, 25 Sep 2006 09:10:19 +0000 (09:10 +0000)]
restore is NOT WORKING!!! role assignment and capability overrides are not in

14 years agoAdded form-group
moodler [Mon, 25 Sep 2006 09:06:51 +0000 (09:06 +0000)]
Added form-group

14 years agoAdded some CSS to contain the html editor
moodler [Mon, 25 Sep 2006 08:54:16 +0000 (08:54 +0000)]
Added some CSS to contain the html editor

14 years agofix for MDL-6599 - problem with hiding of resource when $CFG->preventaccesstohiddenfi...
skodak [Mon, 25 Sep 2006 08:53:10 +0000 (08:53 +0000)]
fix for MDL-6599 - problem with hiding of resource when $CFG->preventaccesstohiddenfiles enabled

14 years agoAbstracted query in a new function forum_discussions_user_has_posted_in()
vyshane [Mon, 25 Sep 2006 08:50:00 +0000 (08:50 +0000)]
Abstracted query in a new function forum_discussions_user_has_posted_in()

14 years agoFixed div around submit button
moodler [Mon, 25 Sep 2006 08:44:22 +0000 (08:44 +0000)]
Fixed div around submit button

14 years agoAdded $forums[$i]->type == 'qanda' check to make things more explicit
vyshane [Mon, 25 Sep 2006 08:41:31 +0000 (08:41 +0000)]
Added $forums[$i]->type == 'qanda' check to make things more explicit

14 years agoRemove size=X from admin settings (do it in CSS)
moodler [Mon, 25 Sep 2006 08:33:10 +0000 (08:33 +0000)]
Remove size=X from admin settings (do it in CSS)

14 years agoFix for MDL-6212. Forum searches now respect the qanda forums. In these forums, the...
vyshane [Mon, 25 Sep 2006 08:25:58 +0000 (08:25 +0000)]
Fix for MDL-6212. Forum searches now respect the qanda forums. In these forums, the user should not be able to see posts from discussions where the user has not yet posted, unless a post is the first post in the discussion (the question), or unless the user has the capabilitiy mod/forum:viewqandawithoutposting.

14 years agoRemoved a typo
moodler [Mon, 25 Sep 2006 08:22:05 +0000 (08:22 +0000)]
Removed a typo

14 years agoUpdates for better CSS hooks
moodler [Mon, 25 Sep 2006 08:20:14 +0000 (08:20 +0000)]
Updates for better CSS hooks

14 years agoTemporary fix
moodler [Mon, 25 Sep 2006 08:01:05 +0000 (08:01 +0000)]
Temporary fix

14 years agoFix the editor and the surrounding table for settings
moodler [Mon, 25 Sep 2006 07:55:10 +0000 (07:55 +0000)]
Fix the editor and the surrounding table for settings

14 years agosome fixes for the main load_user_capablitiies() function, need pair c1, c2 to impose...
toyomoyo [Mon, 25 Sep 2006 07:50:03 +0000 (07:50 +0000)]
some fixes for the main load_user_capablitiies() function, need pair c1, c2 to impose uniqueness. should use c2.id instead for override. no restriction on c2 for assignments

14 years agoFixed missing div properly this time :-)
moodler [Mon, 25 Sep 2006 07:45:02 +0000 (07:45 +0000)]
Fixed missing div properly this time :-)

14 years agoFixed miossing divs
moodler [Mon, 25 Sep 2006 07:40:50 +0000 (07:40 +0000)]
Fixed miossing divs

14 years agoMoving all the admin settings to a tableless design MDL-6678
moodler [Mon, 25 Sep 2006 07:35:43 +0000 (07:35 +0000)]
Moving all the admin settings to a tableless design  MDL-6678

Thanks Urs for the CSS help!

14 years agoFix sort on get_teacher to get the most senior teacher
moodler [Mon, 25 Sep 2006 06:15:31 +0000 (06:15 +0000)]
Fix sort on get_teacher to get the most senior teacher

14 years agoFIxed some problems when getting teacher lists for print_course
moodler [Mon, 25 Sep 2006 06:09:06 +0000 (06:09 +0000)]
FIxed some problems when getting teacher lists for print_course

14 years agoFIxes related to strange default languages
moodler [Mon, 25 Sep 2006 06:04:02 +0000 (06:04 +0000)]
FIxes related to strange default languages

14 years agoDiscussions from a forum of type 'single' should not be splittable. Merge from 1...
vyshane [Mon, 25 Sep 2006 05:12:01 +0000 (05:12 +0000)]
Discussions from a forum of type 'single' should not be splittable. Merge from 1.6 branch.

14 years agoMerged fix for MDL-6521
vyshane [Mon, 25 Sep 2006 05:00:36 +0000 (05:00 +0000)]
Merged fix for MDL-6521

14 years agobugsquish! stats aggregates and weird missing dates bug
mjollnir_ [Mon, 25 Sep 2006 04:50:17 +0000 (04:50 +0000)]
bugsquish!  stats aggregates and weird missing dates bug

14 years agoFixed - wrong constant name
vyshane [Mon, 25 Sep 2006 04:11:41 +0000 (04:11 +0000)]
Fixed - wrong constant name

14 years agoMerged fix for MDL-6363
vyshane [Mon, 25 Sep 2006 04:03:18 +0000 (04:03 +0000)]
Merged fix for MDL-6363

14 years agoFix for get_users_by_capability() so the caller can choose whether
moodler [Mon, 25 Sep 2006 03:00:50 +0000 (03:00 +0000)]
Fix for get_users_by_capability() so the caller can choose whether
they want users with doanything included or not

14 years agoError printing for cron should be done with mtrace()
vyshane [Mon, 25 Sep 2006 02:44:54 +0000 (02:44 +0000)]
Error printing for cron should be done with mtrace()

14 years agoFix in forum_make_mail_post()
vyshane [Mon, 25 Sep 2006 02:34:52 +0000 (02:34 +0000)]
Fix in forum_make_mail_post()

14 years agoFixed sql query in assignment_get_unmailed_submissions() - we can't rely on user_stud...
vyshane [Mon, 25 Sep 2006 02:04:11 +0000 (02:04 +0000)]
Fixed sql query in assignment_get_unmailed_submissions() - we can't rely on user_students anymore.

14 years agoRestoring table_column which was mistakenly deleted I think
moodler [Mon, 25 Sep 2006 01:55:06 +0000 (01:55 +0000)]
Restoring table_column which was mistakenly deleted I think

14 years agoChanged the flag to be on a given user basis (just in case it gets called
moodler [Mon, 25 Sep 2006 01:42:41 +0000 (01:42 +0000)]
Changed the flag to be on a given user basis (just in case it gets called
for a lot of users)

14 years agoTypo in capability name.
vyshane [Mon, 25 Sep 2006 01:35:49 +0000 (01:35 +0000)]
Typo in capability name.

14 years agoAdded a checking flag to check_enrolment_plugins() to make sure that it
moodler [Mon, 25 Sep 2006 01:34:21 +0000 (01:34 +0000)]
Added a checking flag to check_enrolment_plugins() to make sure that it
never repeats more than once in an invocation.  Otherwise it's sometimes
possible for role_assign() during the enrolment process to cause loops.

14 years agoQuick Fix. It should be 24!
stronk7 [Sun, 24 Sep 2006 22:15:57 +0000 (22:15 +0000)]
Quick Fix. It should be 24!

14 years agoDrop all the unique keys inside PostgreSQL DB and convert them to
stronk7 [Sun, 24 Sep 2006 22:14:23 +0000 (22:14 +0000)]
Drop all the unique keys inside PostgreSQL DB and convert them to
their equivalest unique indexes. We aren't going to allow unique
keys from 1.7 and upwards (until we decide to enforce referential
intregrity and until ADOdb support it)

14 years agofixed the dropdown menus in the detailed (user) reports (WHICH WORK!)
mjollnir_ [Sun, 24 Sep 2006 22:13:31 +0000 (22:13 +0000)]
fixed the dropdown menus in the detailed (user) reports (WHICH WORK!)

14 years agoit is now possible to hide parts of admin tree - not used yet, but it will be soon...
skodak [Sun, 24 Sep 2006 20:23:40 +0000 (20:23 +0000)]
it is now possible to hide parts of admin tree - not used yet, but it will be soon used for those hidden unsupported scripts in admin/ directory

14 years agoAdded one new function find_key_name() to retrieve the
stronk7 [Sun, 24 Sep 2006 19:39:53 +0000 (19:39 +0000)]
Added one new function find_key_name() to retrieve the
name og any key in the DB. This hasn't too much sense
for now (until we start to use referencial integrity) and
it is far from perfect, because it doesn't seach for the
key really in DB (due to the lack of support for this of ADOdb).

14 years agofixed scheduled backup time setting
skodak [Sun, 24 Sep 2006 19:37:34 +0000 (19:37 +0000)]
fixed scheduled backup time setting

14 years agofix for MDL-6680 redirect function is broken when running php as CGI, me() now used...
skodak [Sun, 24 Sep 2006 19:10:13 +0000 (19:10 +0000)]
fix for MDL-6680 redirect function is broken when running php as CGI, me() now used instead of SCRIPT_NAME + minor coding style changes

14 years agofixes for recent incorrect index updates
skodak [Sun, 24 Sep 2006 19:04:32 +0000 (19:04 +0000)]
fixes for recent incorrect index updates

14 years agoNow Oracle generator is able to change the precision and decimals of
stronk7 [Sun, 24 Sep 2006 17:39:20 +0000 (17:39 +0000)]
Now Oracle generator is able to change the precision and decimals of
one column by using one temp column. This prevents ORA-1440 errors.

14 years agoThis is a demo of the experimental formslib. It is used here to print and process...
jamiesensei [Sun, 24 Sep 2006 17:14:44 +0000 (17:14 +0000)]
This is a demo of the experimental formslib. It is used here to print and process the course settings form.

14 years agoThis is a first cut of a new formslib.php a library of classes for creating and secur...
jamiesensei [Sun, 24 Sep 2006 17:04:51 +0000 (17:04 +0000)]
This is a first cut of a new formslib.php a library of classes for creating and securely processing forms in Moodle, based on PEAR QuickForms. Only uses XHTML and CSS and no table tags.

This is NOT YET PART OF THE MOODLE API it is here for experimental purposes.

14 years agoWhen getting users by capability then exclude those with doanything at site level
moodler [Sun, 24 Sep 2006 16:14:39 +0000 (16:14 +0000)]
When getting users by capability then exclude those with doanything at site level

14 years agoMSSQL alter field is exactly the standard one but with alter_column_skip_default...
stronk7 [Sun, 24 Sep 2006 15:54:46 +0000 (15:54 +0000)]
MSSQL alter field is exactly the standard one but with alter_column_skip_default enabled