]> git.mjollnir.org Git - moodle.git/log
moodle.git
18 years agoNo need get_student_courses() and get_teacher_courses() anymore.
ethem [Fri, 22 Sep 2006 13:11:49 +0000 (13:11 +0000)]
No need get_student_courses() and get_teacher_courses() anymore.

18 years agoChanged deprecated enrol_student() function to enrol_into_course().
ethem [Fri, 22 Sep 2006 12:18:58 +0000 (12:18 +0000)]
Changed deprecated enrol_student() function to enrol_into_course().

18 years agofixing stats_get_course_users. my brain hurts
mjollnir_ [Fri, 22 Sep 2006 11:34:25 +0000 (11:34 +0000)]
fixing stats_get_course_users. my brain hurts

18 years agoPrevent 'Warning: Invalid argument supplied for foreach() in ...' for get_courses_pag...
dwoolhead [Fri, 22 Sep 2006 11:15:10 +0000 (11:15 +0000)]
Prevent 'Warning: Invalid argument supplied for foreach() in ...' for get_courses_page function when there are no courses in the required category.

18 years agoset config statsupgraded during install so we don't try upgrade later
mjollnir_ [Fri, 22 Sep 2006 11:09:15 +0000 (11:09 +0000)]
set config statsupgraded during install so we don't try upgrade later

18 years agoOoops. The following-HTTP-standard absolute-path redirect thing didn't work with...
sam_marshall [Fri, 22 Sep 2006 10:48:37 +0000 (10:48 +0000)]
Ooops. The following-HTTP-standard absolute-path redirect thing didn't work with URLs that begin / (i.e. it couldn't redirect to /moodle/whatever although it was fine redirecting to http://thing/moodle or to plain old whatever/something.) Fixed.

18 years agoadded missing indexes in stats upgrade, fixed discrepency between stattype enrolment...
mjollnir_ [Fri, 22 Sep 2006 10:43:04 +0000 (10:43 +0000)]
added missing indexes in stats upgrade, fixed discrepency between stattype enrolment or enrolments

18 years agofixing up the stats table enums
mjollnir_ [Fri, 22 Sep 2006 10:18:33 +0000 (10:18 +0000)]
fixing up the stats table enums

18 years agoFixed bug about all chars being created with length 255. Penny found this!
stronk7 [Fri, 22 Sep 2006 10:15:51 +0000 (10:15 +0000)]
Fixed bug about all chars being created with length 255. Penny found this!

18 years agomoved call to upgrade stats until after all the roles stuff has been set up
mjollnir_ [Fri, 22 Sep 2006 10:00:34 +0000 (10:00 +0000)]
moved call to upgrade stats until after all the roles stuff has been set up

18 years agoFIxed up longtimenosee processing in cron
moodler [Fri, 22 Sep 2006 09:54:43 +0000 (09:54 +0000)]
FIxed up longtimenosee processing in cron

18 years agoKilling some not needed references
stronk7 [Fri, 22 Sep 2006 09:54:02 +0000 (09:54 +0000)]
Killing some not needed references

18 years agoFixes for get_users_longtimenosee
moodler [Fri, 22 Sep 2006 09:49:26 +0000 (09:49 +0000)]
Fixes for get_users_longtimenosee

18 years agoSuggested changes from MDL-6654
vyshane [Fri, 22 Sep 2006 09:23:50 +0000 (09:23 +0000)]
Suggested changes from MDL-6654

18 years agoAdded comment regarding $isteacher being deprecated in print_recent_activity()
vyshane [Fri, 22 Sep 2006 09:11:46 +0000 (09:11 +0000)]
Added comment regarding $isteacher being deprecated in print_recent_activity()

18 years agoproper install.xml schema for new stats tables
mjollnir_ [Fri, 22 Sep 2006 08:58:40 +0000 (08:58 +0000)]
proper install.xml schema for new stats tables

18 years agobackup changes for roles
toyomoyo [Fri, 22 Sep 2006 08:56:25 +0000 (08:56 +0000)]
backup changes for roles

18 years ago'added 16px height to the commands to correct the wrapping issue in the sideblock...
urs_hunkler [Fri, 22 Sep 2006 07:51:23 +0000 (07:51 +0000)]
'added 16px height to the commands to correct the wrapping issue in the sideblock header'

18 years agoFix for MDL-6654
vyshane [Fri, 22 Sep 2006 07:08:43 +0000 (07:08 +0000)]
Fix for MDL-6654

18 years agoReplaced isteacher & co. Fixed some issues.
vyshane [Fri, 22 Sep 2006 06:29:40 +0000 (06:29 +0000)]
Replaced isteacher & co. Fixed some issues.

18 years agonew tags for new functions
moodler [Fri, 22 Sep 2006 06:27:51 +0000 (06:27 +0000)]
new tags for new functions

18 years agorenamed field in context table
moodler [Fri, 22 Sep 2006 06:21:48 +0000 (06:21 +0000)]
renamed field in context table

18 years agoUpgrading table to rename the context->aggregatelevel field which was
moodler [Fri, 22 Sep 2006 06:19:32 +0000 (06:19 +0000)]
Upgrading table to rename the context->aggregatelevel field which was
really bugging me.   Code should be a little bit more readable now.

Apologies to those with non-core code already using this field.

18 years agoDOn't terminate upgrade if stats didn't work
moodler [Fri, 22 Sep 2006 06:10:42 +0000 (06:10 +0000)]
DOn't terminate upgrade if stats didn't work

18 years agoschema files for stats changes (install.xml still to come). Credit: Nigel McNie ...
mjollnir_ [Fri, 22 Sep 2006 06:05:07 +0000 (06:05 +0000)]
schema files for stats changes (install.xml still to come). Credit: Nigel McNie <nigel@catalyst.net.nz>

18 years agoImproved error messages for role_assign to be more helpful
moodler [Fri, 22 Sep 2006 05:23:59 +0000 (05:23 +0000)]
Improved error messages for role_assign to be more helpful

18 years agoRemoving some notices
moodler [Fri, 22 Sep 2006 05:17:57 +0000 (05:17 +0000)]
Removing some notices

18 years agoMerged support for personal dictionaries in spellchecker
moodler [Fri, 22 Sep 2006 04:38:32 +0000 (04:38 +0000)]
Merged support for personal dictionaries in spellchecker

18 years agofunction_names() might not like the egg
moodler [Fri, 22 Sep 2006 03:49:49 +0000 (03:49 +0000)]
function_names() might not like the egg

18 years agoFix for MDL-6319, to fix opposite-state links for unread tracking settings
moodler [Fri, 22 Sep 2006 03:36:31 +0000 (03:36 +0000)]
Fix for MDL-6319, to fix opposite-state links for unread tracking settings

18 years agoRemoved mod/workshop:view
vyshane [Fri, 22 Sep 2006 03:28:56 +0000 (03:28 +0000)]
Removed mod/workshop:view

18 years agoAs well as a credit to Nigel for the stats schema upgrade and data migration, the...
mjollnir_ [Fri, 22 Sep 2006 03:15:52 +0000 (03:15 +0000)]
As well as a credit to Nigel for the stats schema upgrade and data migration, the previous commit here should have had a HUGE credit to Geoff Cant <geoff@catalyst.net.nz> for NINJA SQL

18 years agoRemoved mod/wiki:view
vyshane [Fri, 22 Sep 2006 03:14:08 +0000 (03:14 +0000)]
Removed mod/wiki:view

18 years agoRemoved mod/scorm:view
vyshane [Fri, 22 Sep 2006 03:07:29 +0000 (03:07 +0000)]
Removed mod/scorm:view

18 years agoRemoved mod/resource:view
vyshane [Fri, 22 Sep 2006 03:05:46 +0000 (03:05 +0000)]
Removed mod/resource:view

18 years agoRemoved mod/lesson:view
vyshane [Fri, 22 Sep 2006 02:58:39 +0000 (02:58 +0000)]
Removed mod/lesson:view

18 years agostats rework: 1. upgrade schema and move data to new schema. (credit: Nigel McNie...
mjollnir_ [Fri, 22 Sep 2006 02:54:21 +0000 (02:54 +0000)]
stats rework: 1. upgrade schema and move data to new schema. (credit: Nigel McNie <nigel@catalyst.net.nz>).  2. Stats processing uses new schema. THIS NEEDS TESTING ON MYSQL.  Still to do: schema files (install.xml,*.sql still to be committed), reports to use new schema.

18 years agoRemoved 'mod/glossary:view' capability
vyshane [Fri, 22 Sep 2006 02:52:48 +0000 (02:52 +0000)]
Removed 'mod/glossary:view' capability

18 years agoA real easter egg ;-)
moodler [Fri, 22 Sep 2006 02:28:13 +0000 (02:28 +0000)]
A real easter egg ;-)

18 years agofixed a bug, override in user should not record userid as a capability
toyomoyo [Fri, 22 Sep 2006 02:17:59 +0000 (02:17 +0000)]
fixed a bug, override in user should not record userid as a capability

18 years agoSome easter eggs :-)
moodler [Fri, 22 Sep 2006 02:11:00 +0000 (02:11 +0000)]
Some easter eggs :-)

18 years agofixing bogus function calls
toyomoyo [Fri, 22 Sep 2006 01:49:23 +0000 (01:49 +0000)]
fixing bogus function calls

18 years agosome new functions to help backuo
toyomoyo [Fri, 22 Sep 2006 01:46:45 +0000 (01:46 +0000)]
some new functions to help backuo

18 years agocode to support roles (roleassignments and roleoverrides) for backup in all 4 roles...
toyomoyo [Fri, 22 Sep 2006 01:35:35 +0000 (01:35 +0000)]
code to support roles (roleassignments and roleoverrides) for backup in all 4 roles course, mod, block, userid contexts. not working yet

18 years agoMake it easier to get out of a switched role in case viewing is not allowed
moodler [Fri, 22 Sep 2006 01:29:11 +0000 (01:29 +0000)]
Make it easier to get out of a switched role in case viewing is not allowed

18 years agoChanged breadcrumb and blog tag color.
mits [Fri, 22 Sep 2006 01:23:49 +0000 (01:23 +0000)]
Changed breadcrumb and blog tag color.

18 years agoUse role sortorder when getting role lists
moodler [Fri, 22 Sep 2006 01:21:01 +0000 (01:21 +0000)]
Use role sortorder when getting role lists

18 years agoimproved coding style
skodak [Thu, 21 Sep 2006 23:15:45 +0000 (23:15 +0000)]
improved coding style

18 years agoimproved coding style
skodak [Thu, 21 Sep 2006 23:08:58 +0000 (23:08 +0000)]
improved coding style

18 years agominor allignment change in role list
skodak [Thu, 21 Sep 2006 23:00:48 +0000 (23:00 +0000)]
minor allignment change in role list

18 years agoadjusting breadcrumb separator...
stronk7 [Thu, 21 Sep 2006 23:00:45 +0000 (23:00 +0000)]
adjusting breadcrumb separator...

18 years agopartial rewrite of role manage script, improved notice_yesno(), other minor fixes...
skodak [Thu, 21 Sep 2006 22:34:45 +0000 (22:34 +0000)]
partial rewrite of role manage script, improved notice_yesno(), other minor fixes and changes; I will work on assign and overide tomorrow ;-)

18 years agoMDL-6544
cap2501 [Thu, 21 Sep 2006 18:38:54 +0000 (18:38 +0000)]
MDL-6544
resolved issue by passing strings into new main.portal.strings for delocalization.

18 years agoNow all the insert_record() and update_record() calls under
stronk7 [Thu, 21 Sep 2006 18:30:50 +0000 (18:30 +0000)]
Now all the insert_record() and update_record() calls under
Oracle DB use the oracle_dirty_hack() function to transform
empty strings into something different ' ' in order to avoid
the problems with the empty=NULL stupid norm of Oracle.

With this change, Oracle installation works completely.

Now we need to implement everywhere the opposite hack: transforming
all those ' ' (1 whitespace) back to the '' (empty string). Working
on it now.

18 years agoSQL ANDs mus be, always, "AND" :-P
stronk7 [Thu, 21 Sep 2006 17:18:56 +0000 (17:18 +0000)]
SQL ANDs mus be, always, "AND" :-P

18 years agoSome fixes to move Javascript files to PHP script, so that we can
moodler [Thu, 21 Sep 2006 17:17:00 +0000 (17:17 +0000)]
Some fixes to move Javascript files to PHP script, so that we can
tweak the contents better.

This was supposed to fix MDL-6544 but it didn't work.  Checking it in
because it will help a fix later.

18 years agoSQL ORs must be, always, "OR"
stronk7 [Thu, 21 Sep 2006 17:09:28 +0000 (17:09 +0000)]
SQL ORs must be, always, "OR"

18 years agoAllow to specify NULL clauses for some generators, mainly because
stronk7 [Thu, 21 Sep 2006 17:04:28 +0000 (17:04 +0000)]
Allow to specify NULL clauses for some generators, mainly because
some mssql drivers use to create everything as NOT NULL by default.

18 years agoNew string , used in registering
moodler [Thu, 21 Sep 2006 16:49:15 +0000 (16:49 +0000)]
New string , used in registering

18 years agoFixes to make registering work ;-)
moodler [Thu, 21 Sep 2006 16:48:46 +0000 (16:48 +0000)]
Fixes to make registering work ;-)

18 years agoFixed typo in capability name
moodler [Thu, 21 Sep 2006 16:46:10 +0000 (16:46 +0000)]
Fixed typo in capability name

18 years agofixed typos in capabiltiy names
skodak [Thu, 21 Sep 2006 16:27:37 +0000 (16:27 +0000)]
fixed typos in capabiltiy names

18 years agoPeople under switched roles should not be able to unenrol
moodler [Thu, 21 Sep 2006 16:11:31 +0000 (16:11 +0000)]
People under switched roles should not be able to unenrol

18 years agoChanging defaults for role assigning (teachers, coursecreators allowed)
moodler [Thu, 21 Sep 2006 16:02:39 +0000 (16:02 +0000)]
Changing defaults for role assigning (teachers, coursecreators allowed)

18 years agoImprovements to switchroles
moodler [Thu, 21 Sep 2006 15:58:59 +0000 (15:58 +0000)]
Improvements to switchroles

1) You can have separate switchroles active in every course

2) Admins get a better view (doanything is supressed when switchroles active)

18 years agoChanged the redirect() version with no message (that sends a redirect header) so...
sam_marshall [Thu, 21 Sep 2006 15:13:27 +0000 (15:13 +0000)]
Changed the redirect() version with no message (that sends a redirect header) so that it sends an absolute URL as per HTTP spec, even if the argument to the function is a relative URL.

18 years agoChanged the login info string when a user is using 'switch roles'
moodler [Thu, 21 Sep 2006 14:42:45 +0000 (14:42 +0000)]
Changed the login info string when a user is using 'switch roles'

18 years agoFixed a capability name typo
moodler [Thu, 21 Sep 2006 14:07:27 +0000 (14:07 +0000)]
Fixed a capability name typo

18 years agoFixed typos in capability names
moodler [Thu, 21 Sep 2006 14:05:58 +0000 (14:05 +0000)]
Fixed typos in capability names

18 years agoChanged logic slightly in switchrole_form
moodler [Thu, 21 Sep 2006 14:04:32 +0000 (14:04 +0000)]
Changed logic slightly in switchrole_form

18 years agoFix typo
moodler [Thu, 21 Sep 2006 13:11:05 +0000 (13:11 +0000)]
Fix typo

18 years agoAdded feature to blocks (and restorelib) so that blocks get a method call (default...
sam_marshall [Thu, 21 Sep 2006 12:07:15 +0000 (12:07 +0000)]
Added feature to blocks (and restorelib) so that blocks get a method call (default does nothing) after they are restored. This allows blocks to change their settings if necessary in respect of the new course roll-forward 'restore and change start date' feature that Al implemented recently. The core blocks happen not to store dates anyway so don't need this, but contributed blocks may well do.

18 years agoWhen journal to assignment migration is performed, journal
stronk7 [Thu, 21 Sep 2006 10:04:49 +0000 (10:04 +0000)]
When journal to assignment migration is performed, journal
upgrade hasn't been upgraded yet so the journal_entries->comment
field is still called "comment"

18 years agoLast reserved word is out now!
stronk7 [Thu, 21 Sep 2006 09:54:00 +0000 (09:54 +0000)]
Last reserved word is out now!
journal_entries->comment to entrycomment

Only 2 tables have reserved names but they aren't
a problem if we force $CFG->prefix always

18 years agoMoved assignment_submission->comment to submissioncomment
stronk7 [Thu, 21 Sep 2006 09:35:20 +0000 (09:35 +0000)]
Moved assignment_submission->comment to submissioncomment
(because comment is DB reserved word)

18 years agoMore strings
moodler [Thu, 21 Sep 2006 09:16:56 +0000 (09:16 +0000)]
More strings

18 years agoNew "Switch Role" functionality to replace the old "Student view".
moodler [Thu, 21 Sep 2006 09:16:41 +0000 (09:16 +0000)]
New "Switch Role" functionality to replace the old "Student view".

It's not well-tested yet and probably doesn't quite work.  I will keep debugging this tonight from home.

18 years agochanges to backups (where the roles info are stored)
toyomoyo [Thu, 21 Sep 2006 09:09:16 +0000 (09:09 +0000)]
changes to backups (where the roles info are stored)

18 years agoRemoved capability mod/forum:viewforum. We will use moodle/course:viewhiddenactivitie...
vyshane [Thu, 21 Sep 2006 08:32:05 +0000 (08:32 +0000)]
Removed capability mod/forum:viewforum. We will use moodle/course:viewhiddenactivities and hide/unhide forums instead.

18 years agoRemoved string for mod/forum:viewforum
vyshane [Thu, 21 Sep 2006 08:30:59 +0000 (08:30 +0000)]
Removed string for mod/forum:viewforum

18 years agoanother admin ui cleanup
skodak [Thu, 21 Sep 2006 08:28:25 +0000 (08:28 +0000)]
another admin ui cleanup

18 years agocapability related changes in new admin tree
skodak [Thu, 21 Sep 2006 08:18:14 +0000 (08:18 +0000)]
capability related changes in new admin tree

18 years agoold admin configuration cleanup - MDL-6595 MDL-6449 MDL-6447
skodak [Thu, 21 Sep 2006 08:05:50 +0000 (08:05 +0000)]
old admin configuration cleanup - MDL-6595 MDL-6449 MDL-6447

18 years agoForce ANSI NULLs under mssql. It's not critical to work
stronk7 [Thu, 21 Sep 2006 07:44:56 +0000 (07:44 +0000)]
Force ANSI NULLs under mssql. It's not critical to work
but it avoids some problems when changing nullability
of fields in the future.

18 years agoAdded new capability to switch roles (replaces old student view)
moodler [Thu, 21 Sep 2006 07:44:53 +0000 (07:44 +0000)]
Added new capability to switch roles (replaces old student view)

18 years agoAdded some notes for future reference
vyshane [Thu, 21 Sep 2006 07:40:24 +0000 (07:40 +0000)]
Added some notes for future reference

18 years agoFIxed defaults for frontpage format
moodler [Thu, 21 Sep 2006 07:38:13 +0000 (07:38 +0000)]
FIxed defaults for frontpage format

18 years agoadding roles support for backups
toyomoyo [Thu, 21 Sep 2006 06:57:14 +0000 (06:57 +0000)]
adding roles support for backups

18 years agoremoved moodle specific debug messages from file.php
skodak [Thu, 21 Sep 2006 06:38:27 +0000 (06:38 +0000)]
removed moodle specific debug messages from file.php

18 years agoCleanups in view.php. Also moved logging of a forum view so that the event is not...
vyshane [Thu, 21 Sep 2006 05:42:35 +0000 (05:42 +0000)]
Cleanups in view.php. Also moved logging of a forum view so that the event is not logged if the user does not have permission to view discussions in a forum (user never sees the discussions, so not counted as a view).

Tidy up of error display in discuss.php for when a user does not have permission to view the discussion.

18 years agoAdded message string for when a user does not have permissions to view forum discussi...
vyshane [Thu, 21 Sep 2006 05:39:17 +0000 (05:39 +0000)]
Added message string for when a user does not have permissions to view forum discussions in a forum.

18 years agoRemoved column ratings from data table
vyshane [Thu, 21 Sep 2006 04:10:36 +0000 (04:10 +0000)]
Removed column ratings from data table

18 years agofix for MDL-6571, added get_roles_on_exact_context() for backup
toyomoyo [Thu, 21 Sep 2006 03:21:33 +0000 (03:21 +0000)]
fix for MDL-6571, added get_roles_on_exact_context() for backup

18 years agoAutomatic installer.php lang files by installer_builder (20060921)
moodler [Thu, 21 Sep 2006 02:44:10 +0000 (02:44 +0000)]
Automatic installer.php lang files by installer_builder (20060921)

18 years agofixing syntex errors
toyomoyo [Thu, 21 Sep 2006 02:03:39 +0000 (02:03 +0000)]
fixing syntex errors

18 years agotrying to add some role support, not sure things are at the right place yet.
toyomoyo [Thu, 21 Sep 2006 01:56:59 +0000 (01:56 +0000)]
trying to add some role support, not sure things are at the right place yet.

18 years agoFlatfile enrolment plugin upgraded to new use roles. Credit: Alastair Pharo, new...
mjollnir_ [Thu, 21 Sep 2006 00:04:43 +0000 (00:04 +0000)]
Flatfile enrolment plugin upgraded to new use roles. Credit: Alastair Pharo, new Catalyst ninja ;)  <alastair@catalyst.net.nz>

18 years agoNow XMLDB installation is enabled! Old mysql.php and postgres7.php can
stronk7 [Wed, 20 Sep 2006 22:36:21 +0000 (22:36 +0000)]
Now XMLDB installation is enabled! Old mysql.php and postgres7.php can
continue being used as previously until we finish all the required
DDL functions.

Also, this implies that *.sql files aren't needed anymore. Now all we have to do
is to maintain the install.xml files from the editor.

18 years agoUpdated comment... :-/
stronk7 [Wed, 20 Sep 2006 22:03:45 +0000 (22:03 +0000)]
Updated comment... :-/

18 years agoForcing ADODB_FETCH_ASSOC explicity now for any DB.
stronk7 [Wed, 20 Sep 2006 22:00:49 +0000 (22:00 +0000)]
Forcing ADODB_FETCH_ASSOC explicity now for any DB.