mark-nielsen [Fri, 19 May 2006 01:05:13 +0000 (01:05 +0000)]
[Merged][BugFix] Bug #5405 - made a new function that grades a lesson for a specific user's attempt. This is then used for grading lessons at the end of a lesson, for ongoing score feature and for updating the grade for essay question grading.
This new grading algorithm now enforces the lesson setting Max attempts when custom scoring is turned Off
Changed the reporting of minquestions setting to match the help file. Now it is question based instead of attempt based.
Changed the reporting of ongoing score to use the new grade function.
skodak [Wed, 17 May 2006 18:06:33 +0000 (18:06 +0000)]
fixed some warnings and removed ugly hack error_reporting(E_ALL ^ E_NOTICE); that was only hiding warnings in this and other code; merged from MOODLE_16_STABLE
martinlanghoff [Wed, 17 May 2006 06:56:14 +0000 (06:56 +0000)]
moodle16cleanup: mod/quiz uniqueid does not exists, taking upgrade script
from mysql.php ver 2005070202. dropping some unused tables during the
transition from quiz to question lib
martinlanghoff [Wed, 17 May 2006 06:42:57 +0000 (06:42 +0000)]
mod/choice mod/lesson mod/scorm moodle16cleanup: Added notification
for cleanup that may fail if one is starting fresh from moodle 1.5.3+,
previous cleanup before 1.5.3 is not needed
martinlanghoff [Wed, 17 May 2006 04:39:43 +0000 (04:39 +0000)]
blocklib: cache (and used cached) block instances properly in $pageblocks
Now blocks_have_content() caches instantiated block objects inside $pageblocks
and blocks_print_blocks() uses them if available. This behaviour now matches
the documentation: blocks instances are created only once, get_content()
may be invoked several times.
A better fix would be to cache the _output_ of the block (the ->content
property) but it may bite us if any block is counting on being called twice.
mjollnir_ [Mon, 15 May 2006 21:52:18 +0000 (21:52 +0000)]
mod/quiz/view No-longer display final grade when quiz settings forbid it.
Changed view.php so that it checked if there were any attempts with
concealed grades before printing the student's overall score.
Credit: Peter Bulmer <peter.bulmer@catalyst.net.nz>
Merged from MOODLE_16_STABLE
mark-nielsen [Mon, 15 May 2006 19:14:22 +0000 (19:14 +0000)]
[BugFix] Bug 5505 - function lesson_print_tree now checks for teacher editing priv before printing editing icons. Had to change arguments for this function as well which is the edit in view.php.
lesson.php how checks for teacher editing priv for all actions except for continue. This is just in case the user hacks the URL.
vyshane [Mon, 15 May 2006 05:01:00 +0000 (05:01 +0000)]
Added option to download logs in excel or csv formats. Merged in code contributed by
Daniele Cordella <d.cordella@iss.it>. Originally posted as bug 5024.
skodak [Sun, 14 May 2006 17:23:29 +0000 (17:23 +0000)]
I hope final fix for warnings when using error() after print_header() with buffering on, solution was to flush all buffers and reenable SID rewrite when needed; merged from MOODLE_16_STABLE
gustav_delius [Sat, 13 May 2006 16:57:17 +0000 (16:57 +0000)]
Introduce question_attempts table, closing bug 5468
Fixed incorrect check for whether to update state or insert new one in save_question_session()
Deal with manually graded states correctly during regrading
Increase state sequence number during manual grading
Supplied missing userid to quiz_save_best_grade() during manual grading
ethem [Fri, 12 May 2006 19:56:02 +0000 (19:56 +0000)]
Fix: Don't show newly created orders prior to 2 minutes.
They may be still in proggress and these aren't test transacions(transid=0).
We check timecreated field to prevent this.
MERGED FROM MOODLE_16_STABLE.
vyshane [Mon, 8 May 2006 03:16:04 +0000 (03:16 +0000)]
Changed the 'module' field length to 20 in the log_display table (Bug #5419).
Previous commit message in 1.6 stable should read 'log_display table' instead
of 'log' table. Both fixes are identical and carried over to HEAD via a merge.
stronk7 [Sat, 6 May 2006 16:58:36 +0000 (16:58 +0000)]
Now, when a single forum is restored and no user data was created,
the initial discussion/post is automatically generated. Bug 5418.
(http://moodle.org/bugs/bug.php?op=show&bugid=5418)