]> git.mjollnir.org Git - moodle.git/log
moodle.git
18 years agoremoving some isteacher()s from glossary
skodak [Sat, 26 Aug 2006 19:19:36 +0000 (19:19 +0000)]
removing some isteacher()s from glossary

18 years agoisguest() compatible with roles
skodak [Sat, 26 Aug 2006 18:42:56 +0000 (18:42 +0000)]
isguest() compatible with roles

18 years agotrusttext cleaning in glossary upgrade - definitions and comments
skodak [Sat, 26 Aug 2006 18:08:18 +0000 (18:08 +0000)]
trusttext cleaning in glossary upgrade - definitions and comments

18 years agominor trusttext fix
skodak [Sat, 26 Aug 2006 17:39:31 +0000 (17:39 +0000)]
minor trusttext fix

18 years agofixed table already exists problem during install and upgrade in Opera
skodak [Sat, 26 Aug 2006 17:20:52 +0000 (17:20 +0000)]
fixed table already exists problem during install and upgrade in Opera

18 years agotrusttext:
skodak [Sat, 26 Aug 2006 13:00:07 +0000 (13:00 +0000)]
trusttext:
 * proposed by Martin Dougiamas
 * implemented by skodak

Usage:
1/ change enabletrusttext to yes in site settings (it is off by default) or set it in config.php
2/ assign moodle/site:trustcontent capability to users whose text submitted in glossary entries, comments, forum posts etc. should not be cleaned == they can use javascript or any other forbidden tags in glossary and forums...

done:
 * core
 * glossary (without proper upgrade)

to do:
 * data cleaning in upgrades
 * forum, blocks and some other places (MD decides)

18 years agoAutomatic installer.php lang files by installer_builder (20060826)
moodler [Sat, 26 Aug 2006 02:48:03 +0000 (02:48 +0000)]
Automatic installer.php lang files by installer_builder (20060826)

18 years agoMax for decimal type in MSSQL is 38 cc.
stronk7 [Sat, 26 Aug 2006 00:50:09 +0000 (00:50 +0000)]
Max for decimal type in MSSQL is 38 cc.

18 years agoAdding back the first column in the recordset, that is out after GetAssoc(),
stronk7 [Sat, 26 Aug 2006 00:08:11 +0000 (00:08 +0000)]
Adding back the first column in the recordset, that is out after GetAssoc(),
in order to:

- Don't get our first named column under some drivers.
- Be able to migrate to ADODB_FETCH_ASSOC soon.

For more info, http://docs.moodle.org/en/XMLDB_Problems,
in the  ADOdb fetch mode (ASSOC, NUM and BOTH) section.

18 years agoMerged bug fix for bug MDL-6323
mark-nielsen [Fri, 25 Aug 2006 22:53:17 +0000 (22:53 +0000)]
Merged bug fix for bug MDL-6323

18 years agofixed missing continue button during upgrade when using dbsessions
skodak [Fri, 25 Aug 2006 20:50:44 +0000 (20:50 +0000)]
fixed missing continue button during upgrade when using dbsessions

18 years agoMany bugs and typos fixed in capabilitties and legacy isteacher() and similar functi...
skodak [Fri, 25 Aug 2006 20:12:12 +0000 (20:12 +0000)]
Many bugs and typos fixed in capabilitties and legacy isteacher()  and similar functions - not many lines changed but it was a looong coding day.

Roles and capabilities should be usable now and old unconverted code should work too :-D

Tested only in fresh installation - admin, teacher and student roles should sort of work.

18 years agoMerged differences from MOODLE_16_STABLE into HEAD
mark-nielsen [Fri, 25 Aug 2006 18:33:50 +0000 (18:33 +0000)]
Merged differences from MOODLE_16_STABLE into HEAD

18 years agoPGs doubles are caller DOUBLE PRECISION
stronk7 [Fri, 25 Aug 2006 17:11:43 +0000 (17:11 +0000)]
PGs doubles are caller DOUBLE PRECISION

18 years agoIndexes on text fields are not allowed
stronk7 [Fri, 25 Aug 2006 17:02:49 +0000 (17:02 +0000)]
Indexes on text fields are not allowed

18 years agoSolved one wrong field declaration in lesson_grades
stronk7 [Fri, 25 Aug 2006 17:02:04 +0000 (17:02 +0000)]
Solved one wrong field declaration in lesson_grades

18 years agoConvert mod/quiz/view.php to roles, and further tidy up the code flow in there. This...
tjhunt [Fri, 25 Aug 2006 16:03:54 +0000 (16:03 +0000)]
Convert mod/quiz/view.php to roles, and further tidy up the code flow in there. This touches other files because I had to change a function in locallib that had an $isteacher parameter.

I have not converted the rest of the quiz, and I don't intend to. I am hoping Moodle.com will do it.

I hope this does not introduce any bugs, but view.php is so complicate (at least it is less complicated than it was) and the quiz has so many options, that it is hard to be sure. This needs lots of testing before 1.7 is released.

18 years agoMissing language string.
tjhunt [Fri, 25 Aug 2006 14:29:47 +0000 (14:29 +0000)]
Missing language string.

18 years agofixed missing global $CONTEXT in get_context_instance()
skodak [Fri, 25 Aug 2006 14:15:52 +0000 (14:15 +0000)]
fixed missing global $CONTEXT in get_context_instance()

18 years agoCorrect typo.
tjhunt [Fri, 25 Aug 2006 11:23:00 +0000 (11:23 +0000)]
Correct typo.

18 years agoJust a slight tidy-up
moodler [Fri, 25 Aug 2006 08:54:22 +0000 (08:54 +0000)]
Just a slight tidy-up

18 years agoAdded has_capability checks
vyshane [Fri, 25 Aug 2006 08:51:50 +0000 (08:51 +0000)]
Added has_capability checks

18 years agoAdded has_capability check
vyshane [Fri, 25 Aug 2006 08:30:25 +0000 (08:30 +0000)]
Added has_capability check

18 years agoAdded has_capability checks
vyshane [Fri, 25 Aug 2006 08:27:28 +0000 (08:27 +0000)]
Added has_capability checks

18 years agosome (mainly admin realated) capabilities
toyomoyo [Fri, 25 Aug 2006 08:27:27 +0000 (08:27 +0000)]
some (mainly admin realated) capabilities

18 years agoAdded 3d moving icon for ajax course format
moodler [Fri, 25 Aug 2006 07:10:22 +0000 (07:10 +0000)]
Added 3d moving icon for ajax course format

18 years agoFIxed some tabs :(
moodler [Fri, 25 Aug 2006 07:09:28 +0000 (07:09 +0000)]
FIxed some tabs :(

and added a module-xxxxx CSS id to each item

18 years agoPrevious committer missed one rename from $edit to $categoryedit. Fixed.
vyshane [Fri, 25 Aug 2006 04:06:41 +0000 (04:06 +0000)]
Previous committer missed one rename from $edit to $categoryedit. Fixed.

18 years agoChanges to take care of forum upgrade to new roles system. Backed up forums
vyshane [Fri, 25 Aug 2006 02:41:16 +0000 (02:41 +0000)]
Changes to take care of forum upgrade to new roles system. Backed up forums
will also be converted to the new roles system if the backup was made
pre-roles.

18 years agoWe need the newly created course_module id to be passed to the restore
vyshane [Fri, 25 Aug 2006 02:37:54 +0000 (02:37 +0000)]
We need the newly created course_module id to be passed to the restore
functions of the modules. We need this now for the forum module to convert
forums backed up in 1.6 to use roles upon restore in 1.7. However, this might
be needed for other modules as well if they need conversion to the roles
system.

18 years agoAdded support for the new upgrade system for main tables.
stronk7 [Thu, 24 Aug 2006 22:27:11 +0000 (22:27 +0000)]
Added support for the new upgrade system for main tables.

18 years agoRenamed column question_sessions->comment at Eloy's
stronk7 [Thu, 24 Aug 2006 16:57:39 +0000 (16:57 +0000)]
Renamed column question_sessions->comment at Eloy's
request since comment is a DB reserved word.
(mimic from sql files) Thanks Tim! B-)

18 years agoAvoid reserved words in dmllib unit tests.
tjhunt [Thu, 24 Aug 2006 16:56:59 +0000 (16:56 +0000)]
Avoid reserved words in dmllib unit tests.

(Except that TEXT is not a reserved word after all, although some things like TINYTEXT are. Wheird!)

18 years agoMDL-5969 Let multiple choice questions have feedback that does not depend on the...
stronk7 [Thu, 24 Aug 2006 16:54:02 +0000 (16:54 +0000)]
MDL-5969 Let multiple choice questions have feedback that does not depend on the chosen answer
(mimic from old sql files)

18 years agoRenamed column question_sessions->comment at Eloy's request since comment is a DB...
tjhunt [Thu, 24 Aug 2006 16:44:15 +0000 (16:44 +0000)]
Renamed column question_sessions->comment at Eloy's request since comment is a DB reserved word.

I have not been able to test this fully, because I cannot assign roles (e.g. Student and Teacher) in 1.7dev at the moment to test a student answering an essay question then a teacher grading it. However, I have tested as much as possible as admin and cannot get any errors.

18 years agoDuring the conversion datalib -> ddllib, Eloy removed my comment that made it possibl...
tjhunt [Thu, 24 Aug 2006 15:37:03 +0000 (15:37 +0000)]
During the conversion datalib -> ddllib, Eloy removed my comment that made it possible to understand how to use table_colum :-( Adding it back.

18 years agoMDL-4816 Fix silly error in my commit for this bug.
tjhunt [Thu, 24 Aug 2006 11:37:10 +0000 (11:37 +0000)]
MDL-4816 Fix silly error in my commit for this bug.

18 years agoFix Eclipse warnings.
tjhunt [Thu, 24 Aug 2006 11:36:38 +0000 (11:36 +0000)]
Fix Eclipse warnings.

18 years agoFix PHP syntax error. I wish more developers used Eclipse.
tjhunt [Thu, 24 Aug 2006 11:22:24 +0000 (11:22 +0000)]
Fix PHP syntax error. I wish more developers used Eclipse.

18 years agoMDL-5969 Let multiple choice questions have feedback that does not depend on the...
tjhunt [Thu, 24 Aug 2006 10:22:43 +0000 (10:22 +0000)]
MDL-5969 Let multiple choice questions have feedback that does not depend on the chosen answer

In passing, I fixed MDL-6297 Export of multichoice questions in Moodle XML format doesn't save shuffle option too.

18 years agoFixed syntax error in a PHPdoc comments.
tjhunt [Thu, 24 Aug 2006 10:16:54 +0000 (10:16 +0000)]
Fixed syntax error in a PHPdoc comments.

18 years agoFixed syntax error in a PHPdoc comment.
tjhunt [Thu, 24 Aug 2006 10:12:15 +0000 (10:12 +0000)]
Fixed syntax error in a PHPdoc comment.

18 years agoAdded support for phpMyAdmin plugin.
vinkmar [Thu, 24 Aug 2006 06:44:35 +0000 (06:44 +0000)]
Added support for phpMyAdmin plugin.

18 years agoFIxed roles button on blocks
moodler [Thu, 24 Aug 2006 03:48:04 +0000 (03:48 +0000)]
FIxed roles button on blocks

18 years agoFormatting fixes
moodler [Thu, 24 Aug 2006 03:37:41 +0000 (03:37 +0000)]
Formatting fixes

18 years agoFIxed some notices
moodler [Thu, 24 Aug 2006 03:28:09 +0000 (03:28 +0000)]
FIxed some notices

18 years agoEd Coyne's AJAX course format, with some cleanups done.
moodler [Thu, 24 Aug 2006 03:20:37 +0000 (03:20 +0000)]
Ed Coyne's AJAX course format, with some cleanups done.

More cleanups to come from Ed.

This isn't actually working for me right now but he'll fix it now.

This is completely optional and won't affect any other code right now.

18 years agoFIxing Ed's mistaken checkin
moodler [Thu, 24 Aug 2006 03:17:53 +0000 (03:17 +0000)]
FIxing Ed's mistaken checkin

18 years agoMDL-4493 issue with 405 pages for IIS users - must specify actual page, as the notic...
danmarsden [Thu, 24 Aug 2006 02:08:59 +0000 (02:08 +0000)]
MDL-4493  issue with 405 pages for IIS users - must specify actual page, as the notice function does a post - you cannot use the POST Verb on a directory in IIS.

18 years agoMDL-4816 Short answer question type considers '100' and '100.' to be the same\r\rActual...
tjhunt [Wed, 23 Aug 2006 21:17:23 +0000 (21:17 +0000)]
MDL-4816 Short answer question type considers '100' and '100.' to be the same\r\rActually, this may have affected other question types too.

18 years agoClarified comment.
tjhunt [Wed, 23 Aug 2006 21:04:04 +0000 (21:04 +0000)]
Clarified comment.

18 years agoMDL-6338 - Short answer questions with ' in the answer don't work. Merged from MOODLE...
tjhunt [Wed, 23 Aug 2006 19:04:24 +0000 (19:04 +0000)]
MDL-6338 - Short answer questions with ' in the answer don't work. Merged from MOODLE_16_STABLE.\r\rYet another unpleasant quiz bug caused by the current broken way we do things with addslashes.

18 years agoFix getting the context. It did not work during question preview from the question...
tjhunt [Wed, 23 Aug 2006 18:37:38 +0000 (18:37 +0000)]
Fix getting the context. It did not work during question preview from the question bank when there was no quiz in sight.

18 years agoGet the contexts without referring to undefined variables.
tjhunt [Wed, 23 Aug 2006 15:32:06 +0000 (15:32 +0000)]
Get the contexts without referring to undefined variables.

18 years agoAdding one PHP close tag that has been missing (but working) since years!
stronk7 [Wed, 23 Aug 2006 15:23:53 +0000 (15:23 +0000)]
Adding one PHP close tag that has been missing (but working) since years!

18 years agoGet the contexts without referring to undefined variables.
tjhunt [Wed, 23 Aug 2006 15:12:52 +0000 (15:12 +0000)]
Get the contexts without referring to undefined variables.

18 years agoMerged from STABLE
thepurpleblob [Wed, 23 Aug 2006 14:57:40 +0000 (14:57 +0000)]
Merged from STABLE

18 years agoImproved one language string. Thank Mitshiro Yoshida.
tjhunt [Wed, 23 Aug 2006 09:23:56 +0000 (09:23 +0000)]
Improved one language string. Thank Mitshiro Yoshida.

18 years agoAdding a copyright notice, and mentioning MDL-3717 purely as a test of the
moodler [Wed, 23 Aug 2006 08:39:15 +0000 (08:39 +0000)]
Adding a copyright notice, and mentioning MDL-3717 purely as a test of the
new CVS integration on tracker.moodle.org

18 years agochanging default override values
toyomoyo [Wed, 23 Aug 2006 08:14:14 +0000 (08:14 +0000)]
changing default override values

18 years agorenamed variable so that it doens't get recycled
toyomoyo [Wed, 23 Aug 2006 08:11:43 +0000 (08:11 +0000)]
renamed variable so that it doens't get recycled

18 years agoRemoved forum_get_course_forum for forum type teacher.
vyshane [Wed, 23 Aug 2006 07:05:36 +0000 (07:05 +0000)]
Removed forum_get_course_forum for forum type teacher.

18 years agoFixed notice
vyshane [Wed, 23 Aug 2006 06:56:23 +0000 (06:56 +0000)]
Fixed notice

18 years agovarious changes - loading capabilities for questions, quiz, hide tab if no assignalbe...
toyomoyo [Wed, 23 Aug 2006 06:36:08 +0000 (06:36 +0000)]
various changes - loading capabilities for questions, quiz, hide tab if no assignalbe or no overridable role is found, added some functions and comments in accesslib

18 years agofixing a typo
toyomoyo [Wed, 23 Aug 2006 05:52:39 +0000 (05:52 +0000)]
fixing a typo

18 years agofix for MDL-6326, add support for quiz_feedaback table
toyomoyo [Wed, 23 Aug 2006 05:39:41 +0000 (05:39 +0000)]
fix for MDL-6326, add support for quiz_feedaback table

18 years agoFixed context caching (wasn't using globals)
moodler [Wed, 23 Aug 2006 01:29:52 +0000 (01:29 +0000)]
Fixed context caching (wasn't using globals)

18 years agodebug off level is now 5 instead of 7 to prevent E_WARNING on production sites SC...
skodak [Tue, 22 Aug 2006 22:25:30 +0000 (22:25 +0000)]
debug off level is now 5 instead of 7 to prevent E_WARNING on production sites SC#294; merged from MOODLE_16_STABLE

18 years agoreverting wrong commit, sorry :-(
skodak [Tue, 22 Aug 2006 22:22:34 +0000 (22:22 +0000)]
reverting wrong commit, sorry :-(

18 years agodebug off level is now 5 instead of 7 to prevent E_WARNING on production sites SC#294
skodak [Tue, 22 Aug 2006 22:19:58 +0000 (22:19 +0000)]
debug off level is now 5 instead of 7 to prevent E_WARNING on production sites SC#294

18 years agofixed trailing whitespace in last commit :-(; merged from MOODLE_16_STABLE
skodak [Tue, 22 Aug 2006 22:12:17 +0000 (22:12 +0000)]
fixed trailing whitespace in last commit :-(; merged from MOODLE_16_STABLE

18 years agoNormalizing a bit all the float/double generators.
stronk7 [Tue, 22 Aug 2006 22:10:09 +0000 (22:10 +0000)]
Normalizing a bit all the float/double generators.

18 years agoRewritten help.php by Tim Hunt with minor fixes - SC#292; merged from MOODLE_16_STABLE
skodak [Tue, 22 Aug 2006 22:04:06 +0000 (22:04 +0000)]
Rewritten help.php by Tim Hunt with minor fixes - SC#292; merged from MOODLE_16_STABLE

18 years agoquiz_feedback added to XMLDB
stronk7 [Tue, 22 Aug 2006 21:55:20 +0000 (21:55 +0000)]
quiz_feedback added to XMLDB

18 years agoSmall typo. ;-)
stronk7 [Tue, 22 Aug 2006 21:44:07 +0000 (21:44 +0000)]
Small typo. ;-)

18 years agoSC 299. Merged from MOODLE_16_STABLE.
tjhunt [Tue, 22 Aug 2006 21:33:54 +0000 (21:33 +0000)]
SC 299. Merged from MOODLE_16_STABLE.

18 years agoChange rule to tzrule (reserved word)
stronk7 [Tue, 22 Aug 2006 21:19:52 +0000 (21:19 +0000)]
Change rule to tzrule (reserved word)

18 years agoUpdated using tzdata2006j
stronk7 [Tue, 22 Aug 2006 20:11:33 +0000 (20:11 +0000)]
Updated using tzdata2006j

18 years agoChange rule to tzrule (reserved word)
stronk7 [Tue, 22 Aug 2006 20:10:54 +0000 (20:10 +0000)]
Change rule to tzrule (reserved word)

18 years agoFix an obvious typo in the roles and permissions code.
tjhunt [Tue, 22 Aug 2006 19:26:05 +0000 (19:26 +0000)]
Fix an obvious typo in the roles and permissions code.

18 years agoFix Eclipse warnings.
tjhunt [Tue, 22 Aug 2006 19:09:52 +0000 (19:09 +0000)]
Fix Eclipse warnings.

18 years agoFix Eclipse warnings.
tjhunt [Tue, 22 Aug 2006 19:09:07 +0000 (19:09 +0000)]
Fix Eclipse warnings.

18 years agoWork round Eclipse warning.
tjhunt [Tue, 22 Aug 2006 19:01:42 +0000 (19:01 +0000)]
Work round Eclipse warning.

18 years agoFix Eclipse warnings.
tjhunt [Tue, 22 Aug 2006 19:00:18 +0000 (19:00 +0000)]
Fix Eclipse warnings.

18 years agoMDL-5270 - give students a feeback comment for their performance in the entire quiz.
tjhunt [Tue, 22 Aug 2006 17:31:26 +0000 (17:31 +0000)]
MDL-5270 - give students a feeback comment for their performance in the entire quiz.

Also, along the way I noticed and fixed MDL-6290 student grades not rescaled when quiz maximum grade changed.

18 years agoOne trick to allow pseudo-null Oracle insertions. Let's see what happen.
stronk7 [Tue, 22 Aug 2006 16:39:14 +0000 (16:39 +0000)]
One trick to allow pseudo-null Oracle insertions. Let's see what happen.

18 years agoUnbreak roles and permission on Postgres yet again.
tjhunt [Tue, 22 Aug 2006 16:18:11 +0000 (16:18 +0000)]
Unbreak roles and permission on Postgres yet again.

If you want a laugh, compare this fix the with the diff between revisions 1.5 and 1.6 of this file.

18 years agoStandard naming now user FOUR char for tables (to avoid
stronk7 [Tue, 22 Aug 2006 16:15:44 +0000 (16:15 +0000)]
Standard naming now user FOUR char for tables (to avoid
avoid some potential duplicates)

18 years agoReverting toyomoyo's conversion of mod/quiz/view.php to roles because his changes...
tjhunt [Tue, 22 Aug 2006 13:53:39 +0000 (13:53 +0000)]
Reverting toyomoyo's conversion of mod/quiz/view.php to roles because his changes made no sense.

Admittedly, this file is pretty incomprehensible and it is not clear at first what it is trying to do. (Even though it is more comprehensible now than it was a week ago.) I'll to a proper conversion of this file to RnP once I have checked in my other changes there - assuming I can actually get Moodle to work so I can test my changes.

18 years agoFix toyomoyo's syntax errors.
tjhunt [Tue, 22 Aug 2006 13:12:24 +0000 (13:12 +0000)]
Fix toyomoyo's syntax errors.

18 years agosome quiz capabilities
toyomoyo [Tue, 22 Aug 2006 09:04:23 +0000 (09:04 +0000)]
some quiz capabilities

18 years agoRemoved deprecated teacher forum type
vyshane [Tue, 22 Aug 2006 07:42:34 +0000 (07:42 +0000)]
Removed deprecated teacher forum type

18 years agoRemoved deprecated forum type teacher.
vyshane [Tue, 22 Aug 2006 07:38:01 +0000 (07:38 +0000)]
Removed deprecated forum type teacher.

18 years agoAdded prevent for mod/prevent:createattachment for default students and guests
vyshane [Tue, 22 Aug 2006 05:56:45 +0000 (05:56 +0000)]
Added prevent for mod/prevent:createattachment for default students and guests
in teacher forums

18 years agoUpgrade now works. Needs more testing.
vyshane [Tue, 22 Aug 2006 05:45:43 +0000 (05:45 +0000)]
Upgrade now works. Needs more testing.

18 years agoFixes:
vyshane [Tue, 22 Aug 2006 05:44:32 +0000 (05:44 +0000)]
Fixes:
1) has_capability call used in fullname()
2) initialised array $options
3) $context->level has been renamed to $context->aggregatelevel

18 years agoBug fixes:
vyshane [Tue, 22 Aug 2006 05:35:52 +0000 (05:35 +0000)]
Bug fixes:
1) Replaced isteacher call in fullname ($course undefined)
2) Initialised $options array

18 years agoRemoved forum->open config since roles will take over this
vyshane [Tue, 22 Aug 2006 02:43:58 +0000 (02:43 +0000)]
Removed forum->open config since roles will take over this

18 years agoNeed to pass the module id and not the object to add_course_module
vyshane [Tue, 22 Aug 2006 02:24:45 +0000 (02:24 +0000)]
Need to pass the module id and not the object to add_course_module

18 years agofixed some notices in scheduled backup; merged from MOODLE_16_STABLE
skodak [Mon, 21 Aug 2006 20:40:07 +0000 (20:40 +0000)]
fixed some notices in scheduled backup; merged from MOODLE_16_STABLE