]> git.mjollnir.org Git - moodle.git/log
moodle.git
18 years agolots of fixes to stats, more to come
mjollnir_ [Sat, 23 Sep 2006 08:52:12 +0000 (08:52 +0000)]
lots of fixes to stats, more to come

18 years agoRewrote much of this to add
moodler [Sat, 23 Sep 2006 07:52:09 +0000 (07:52 +0000)]
Rewrote much of this to add
   - more validation of incoming data
   - error logging in the PHP log

I've tested every function and it works for me without errors.

18 years agoFurther fixes for MDL-6601 ... that should be complete now.
moodler [Sat, 23 Sep 2006 06:10:48 +0000 (06:10 +0000)]
Further fixes for MDL-6601 ... that should be complete now.

18 years agoAutomatic installer.php lang files by installer_builder (20060923)
moodler [Sat, 23 Sep 2006 02:43:18 +0000 (02:43 +0000)]
Automatic installer.php lang files by installer_builder (20060923)

18 years agoFixed a label
mark-nielsen [Sat, 23 Sep 2006 01:01:14 +0000 (01:01 +0000)]
Fixed a label

18 years agofixed error in fetch_context_capabilities() when no local capabilities defined in...
skodak [Fri, 22 Sep 2006 21:31:19 +0000 (21:31 +0000)]
fixed error in fetch_context_capabilities() when no local capabilities defined in context

18 years agorole ui minor cleanup
skodak [Fri, 22 Sep 2006 21:17:43 +0000 (21:17 +0000)]
role ui minor cleanup

18 years agorole assign and override code fixes + other minor changes
skodak [Fri, 22 Sep 2006 20:09:47 +0000 (20:09 +0000)]
role assign and override code fixes + other minor changes

18 years agoNow using ADOdb standard transactions. Some day, we should switch to
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

18 years agoPartially reversed patch for http://tracker.moodle.org/browse/MDL-5136, caching of...
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.

18 years agoFirst pass at a fix for MDL-6601 (delete contexts when deleting course)
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)

18 years agoFixing MDL-6636, reference to file that is now gone (site.html)
moodler [Fri, 22 Sep 2006 17:27:19 +0000 (17:27 +0000)]
Fixing MDL-6636, reference to file that is now gone (site.html)

18 years agoDetect Oracle Database Encoding in order to set CFG->unicodedb properly
stronk7 [Fri, 22 Sep 2006 17:23:09 +0000 (17:23 +0000)]
Detect Oracle Database Encoding in order to set CFG->unicodedb properly

18 years agoReplacing some old strings I should not have deleted MDL-6645
moodler [Fri, 22 Sep 2006 17:12:09 +0000 (17:12 +0000)]
Replacing some old strings I should not have deleted  MDL-6645

18 years agoSome cleanup for cron.
ethem [Fri, 22 Sep 2006 16:19:53 +0000 (16:19 +0000)]
Some cleanup for cron.

18 years agoFixes to user new Roles
moodler [Fri, 22 Sep 2006 16:19:24 +0000 (16:19 +0000)]
Fixes to user new Roles

18 years agoMinor fix to be able to drop tables without prefix properly (adodb_log)
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)

18 years agoSOme changes for Roles
moodler [Fri, 22 Sep 2006 16:11:52 +0000 (16:11 +0000)]
SOme changes for Roles

18 years agoRemoved some old debugging
moodler [Fri, 22 Sep 2006 15:54:03 +0000 (15:54 +0000)]
Removed some old debugging

18 years agomini-bump
stronk7 [Fri, 22 Sep 2006 15:46:40 +0000 (15:46 +0000)]
mini-bump

18 years agoNow cache_text->formattedtext is a longtext again.
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)

18 years agoisguest() to has_capability('moodle/legacy:guest', get_context_instance(CONTEXT_SYSTE...
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)

18 years ago'merged from 1.6 - reduced the distance above the footer from 100px to 40px'
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'

18 years agoFixes bug MDL-6548 "blog_menu block should use lists"
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.

18 years agoSome cleanup.
ethem [Fri, 22 Sep 2006 14:04:11 +0000 (14:04 +0000)]
Some cleanup.

18 years agoLast commit for enrol_student().
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'))

18 years ago+ Changed deprecated enrol_student() function to enrol_into_course().
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.

18 years agoMerged fixes from 1.6
moodler [Fri, 22 Sep 2006 13:27:56 +0000 (13:27 +0000)]
Merged fixes from 1.6

18 years agoFixed a typo for enrol_into_course(), thanks Ethem
moodler [Fri, 22 Sep 2006 13:16:32 +0000 (13:16 +0000)]
Fixed a typo for enrol_into_course(), thanks Ethem

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