]>
git.mjollnir.org Git - moodle.git/log
stronk7 [Fri, 22 Sep 2006 20:05:44 +0000 (20:05 +0000)]
Now using ADOdb standard transactions. Some day, we should switch to
Smart Transactions (http://phplens.com/adodb/tutorial.smart.transactions.html)
as they autodetect errors and are nestable and easier to write
skodak [Fri, 22 Sep 2006 18:08:53 +0000 (18:08 +0000)]
Partially reversed patch for http://tracker.moodle.org/browse/MDL-5136, caching of filtered uploaded html files is disabled now MDL-5136 , Eloy is changing the column type in cache_text back to TEXT.
moodler [Fri, 22 Sep 2006 17:49:45 +0000 (17:49 +0000)]
First pass at a fix for MDL-6601 (delete contexts when deleting course)
moodler [Fri, 22 Sep 2006 17:27:19 +0000 (17:27 +0000)]
Fixing MDL-6636, reference to file that is now gone (site.html)
stronk7 [Fri, 22 Sep 2006 17:23:09 +0000 (17:23 +0000)]
Detect Oracle Database Encoding in order to set CFG->unicodedb properly
moodler [Fri, 22 Sep 2006 17:12:09 +0000 (17:12 +0000)]
Replacing some old strings I should not have deleted MDL-6645
ethem [Fri, 22 Sep 2006 16:19:53 +0000 (16:19 +0000)]
Some cleanup for cron.
moodler [Fri, 22 Sep 2006 16:19:24 +0000 (16:19 +0000)]
Fixes to user new Roles
stronk7 [Fri, 22 Sep 2006 16:16:48 +0000 (16:16 +0000)]
Minor fix to be able to drop tables without prefix properly (adodb_log)
moodler [Fri, 22 Sep 2006 16:11:52 +0000 (16:11 +0000)]
SOme changes for Roles
moodler [Fri, 22 Sep 2006 15:54:03 +0000 (15:54 +0000)]
Removed some old debugging
stronk7 [Fri, 22 Sep 2006 15:46:40 +0000 (15:46 +0000)]
mini-bump
stronk7 [Fri, 22 Sep 2006 15:43:42 +0000 (15:43 +0000)]
Now cache_text->formattedtext is a longtext again.
(both PG and the UTF8 migration script were
working with it as text, so impact should be minimal)
ethem [Fri, 22 Sep 2006 15:31:04 +0000 (15:31 +0000)]
isguest() to has_capability('moodle/legacy:guest', get_context_instance(CONTEXT_SYSTEM, SITEID), $USER->id, false)
urs_hunkler [Fri, 22 Sep 2006 15:19:38 +0000 (15:19 +0000)]
'merged from 1.6 - reduced the distance above the footer from 100px to 40px'
nfreear [Fri, 22 Sep 2006 15:15:48 +0000 (15:15 +0000)]
Fixes bug MDL-6548 "blog_menu block should use lists"
- also blocks: rss_client, admin_bookmark.
- also fixed &/& validation error in rss_client footer.
ethem [Fri, 22 Sep 2006 14:04:11 +0000 (14:04 +0000)]
Some cleanup.
ethem [Fri, 22 Sep 2006 13:50:10 +0000 (13:50 +0000)]
Last commit for enrol_student().
enrol_student($order->userid, $order->courseid, $timestart, $timeend, 'manual')
to
role_assign($role->id, $user->id, 0, $context->id, $timestart, $timeend, 0, 'manual'))
ethem [Fri, 22 Sep 2006 13:33:37 +0000 (13:33 +0000)]
+ Changed deprecated enrol_student() function to enrol_into_course().
+ No need extra check: if (!empty($CFG->enrol_mailstudents)): enrol_into_course calls email_welcome_message_to_user() internally.
moodler [Fri, 22 Sep 2006 13:27:56 +0000 (13:27 +0000)]
Merged fixes from 1.6
moodler [Fri, 22 Sep 2006 13:16:32 +0000 (13:16 +0000)]
Fixed a typo for enrol_into_course(), thanks Ethem
ethem [Fri, 22 Sep 2006 13:11:49 +0000 (13:11 +0000)]
No need get_student_courses() and get_teacher_courses() anymore.
ethem [Fri, 22 Sep 2006 12:18:58 +0000 (12:18 +0000)]
Changed deprecated enrol_student() function to enrol_into_course().
mjollnir_ [Fri, 22 Sep 2006 11:34:25 +0000 (11:34 +0000)]
fixing stats_get_course_users. my brain hurts
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.
mjollnir_ [Fri, 22 Sep 2006 11:09:15 +0000 (11:09 +0000)]
set config statsupgraded during install so we don't try upgrade later
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.
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
mjollnir_ [Fri, 22 Sep 2006 10:18:33 +0000 (10:18 +0000)]
fixing up the stats table enums
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!
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
moodler [Fri, 22 Sep 2006 09:54:43 +0000 (09:54 +0000)]
FIxed up longtimenosee processing in cron
stronk7 [Fri, 22 Sep 2006 09:54:02 +0000 (09:54 +0000)]
Killing some not needed references
moodler [Fri, 22 Sep 2006 09:49:26 +0000 (09:49 +0000)]
Fixes for get_users_longtimenosee
vyshane [Fri, 22 Sep 2006 09:23:50 +0000 (09:23 +0000)]
Suggested changes from MDL-6654
vyshane [Fri, 22 Sep 2006 09:11:46 +0000 (09:11 +0000)]
Added comment regarding $isteacher being deprecated in print_recent_activity()
mjollnir_ [Fri, 22 Sep 2006 08:58:40 +0000 (08:58 +0000)]
proper install.xml schema for new stats tables
toyomoyo [Fri, 22 Sep 2006 08:56:25 +0000 (08:56 +0000)]
backup changes for roles
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'
vyshane [Fri, 22 Sep 2006 07:08:43 +0000 (07:08 +0000)]
Fix for MDL-6654
vyshane [Fri, 22 Sep 2006 06:29:40 +0000 (06:29 +0000)]
Replaced isteacher & co. Fixed some issues.
moodler [Fri, 22 Sep 2006 06:27:51 +0000 (06:27 +0000)]
new tags for new functions
moodler [Fri, 22 Sep 2006 06:21:48 +0000 (06:21 +0000)]
renamed field in context table
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.
moodler [Fri, 22 Sep 2006 06:10:42 +0000 (06:10 +0000)]
DOn't terminate upgrade if stats didn't work
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>
moodler [Fri, 22 Sep 2006 05:23:59 +0000 (05:23 +0000)]
Improved error messages for role_assign to be more helpful
moodler [Fri, 22 Sep 2006 05:17:57 +0000 (05:17 +0000)]
Removing some notices
moodler [Fri, 22 Sep 2006 04:38:32 +0000 (04:38 +0000)]
Merged support for personal dictionaries in spellchecker
moodler [Fri, 22 Sep 2006 03:49:49 +0000 (03:49 +0000)]
function_names() might not like the egg
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
vyshane [Fri, 22 Sep 2006 03:28:56 +0000 (03:28 +0000)]
Removed mod/workshop:view
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
vyshane [Fri, 22 Sep 2006 03:14:08 +0000 (03:14 +0000)]
Removed mod/wiki:view
vyshane [Fri, 22 Sep 2006 03:07:29 +0000 (03:07 +0000)]
Removed mod/scorm:view
vyshane [Fri, 22 Sep 2006 03:05:46 +0000 (03:05 +0000)]
Removed mod/resource:view
vyshane [Fri, 22 Sep 2006 02:58:39 +0000 (02:58 +0000)]
Removed mod/lesson:view
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.
vyshane [Fri, 22 Sep 2006 02:52:48 +0000 (02:52 +0000)]
Removed 'mod/glossary:view' capability
moodler [Fri, 22 Sep 2006 02:28:13 +0000 (02:28 +0000)]
A real easter egg ;-)
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
moodler [Fri, 22 Sep 2006 02:11:00 +0000 (02:11 +0000)]
Some easter eggs :-)
toyomoyo [Fri, 22 Sep 2006 01:49:23 +0000 (01:49 +0000)]
fixing bogus function calls
toyomoyo [Fri, 22 Sep 2006 01:46:45 +0000 (01:46 +0000)]
some new functions to help backuo
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
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
mits [Fri, 22 Sep 2006 01:23:49 +0000 (01:23 +0000)]
Changed breadcrumb and blog tag color.
moodler [Fri, 22 Sep 2006 01:21:01 +0000 (01:21 +0000)]
Use role sortorder when getting role lists
skodak [Thu, 21 Sep 2006 23:15:45 +0000 (23:15 +0000)]
improved coding style
skodak [Thu, 21 Sep 2006 23:08:58 +0000 (23:08 +0000)]
improved coding style
skodak [Thu, 21 Sep 2006 23:00:48 +0000 (23:00 +0000)]
minor allignment change in role list
stronk7 [Thu, 21 Sep 2006 23:00:45 +0000 (23:00 +0000)]
adjusting breadcrumb separator...
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 ;-)
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.
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.
stronk7 [Thu, 21 Sep 2006 17:18:56 +0000 (17:18 +0000)]
SQL ANDs mus be, always, "AND" :-P
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.
stronk7 [Thu, 21 Sep 2006 17:09:28 +0000 (17:09 +0000)]
SQL ORs must be, always, "OR"
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.
moodler [Thu, 21 Sep 2006 16:49:15 +0000 (16:49 +0000)]
New string , used in registering
moodler [Thu, 21 Sep 2006 16:48:46 +0000 (16:48 +0000)]
Fixes to make registering work ;-)
moodler [Thu, 21 Sep 2006 16:46:10 +0000 (16:46 +0000)]
Fixed typo in capability name
skodak [Thu, 21 Sep 2006 16:27:37 +0000 (16:27 +0000)]
fixed typos in capabiltiy names
moodler [Thu, 21 Sep 2006 16:11:31 +0000 (16:11 +0000)]
People under switched roles should not be able to unenrol
moodler [Thu, 21 Sep 2006 16:02:39 +0000 (16:02 +0000)]
Changing defaults for role assigning (teachers, coursecreators allowed)
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)
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.
moodler [Thu, 21 Sep 2006 14:42:45 +0000 (14:42 +0000)]
Changed the login info string when a user is using 'switch roles'
moodler [Thu, 21 Sep 2006 14:07:27 +0000 (14:07 +0000)]
Fixed a capability name typo
moodler [Thu, 21 Sep 2006 14:05:58 +0000 (14:05 +0000)]
Fixed typos in capability names
moodler [Thu, 21 Sep 2006 14:04:32 +0000 (14:04 +0000)]
Changed logic slightly in switchrole_form
moodler [Thu, 21 Sep 2006 13:11:05 +0000 (13:11 +0000)]
Fix typo
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.
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"
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
stronk7 [Thu, 21 Sep 2006 09:35:20 +0000 (09:35 +0000)]
Moved assignment_submission->comment to submissioncomment
(because comment is DB reserved word)
moodler [Thu, 21 Sep 2006 09:16:56 +0000 (09:16 +0000)]
More strings
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.
toyomoyo [Thu, 21 Sep 2006 09:09:16 +0000 (09:09 +0000)]
changes to backups (where the roles info are stored)
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.