stronk7
18d20603ca
Added one missing sesskey.
2005-01-27 23:32:41 +00:00
michaelpenne
f862f00d54
variable cleaning and sesskey updates
2005-01-27 21:36:12 +00:00
michaelpenne
0733cc0062
made a change to lesson_clean_data_submitted and added some xhtml compliance fixes
2005-01-27 21:35:37 +00:00
michaelpenne
d6847e5d95
uncommented the require style sheet (was there a problem?), also rearranged lesson settings into categories.
2005-01-27 21:33:35 +00:00
thepurpleblob
84bbe7f9d3
fixed some incorrect xhtml in the delete bit - missing quotes
2005-01-27 16:40:40 +00:00
thepurpleblob
b90d6ed1e2
factored out functionality to check if question is in use on delete
...
will be using this to delete whole categories of questions (or not)
2005-01-27 16:18:27 +00:00
thepurpleblob
bb5e13d514
factored out function to see if question is used in quiz into the library
2005-01-27 16:10:25 +00:00
thepurpleblob
ddd8f87f7a
multianswerchoice questions added to example questions.
2005-01-27 11:24:26 +00:00
thepurpleblob
2d4aa134d5
Addition code to handle 'multianswerchoice' type Learnwise questions.
2005-01-27 11:22:45 +00:00
defacer
7a652b5f2b
Switching back to an interger-rounded retrieved best grade. Will probably
...
be more human-friendly on screen.
e.g. "What does 66.67 out of 100 mean?"
2005-01-27 03:14:56 +00:00
defacer
28926a08e9
Changing that despicable grade column from mdl_quiz_grades to a
...
floating point data type, as it should be.
2005-01-27 03:10:57 +00:00
defacer
35f45a0d83
It seems that grades are saved with two decimal points of precision while
...
they are being retrieved as integers. Changed it to two decimals everywhere
and continuing to go about it...
2005-01-27 02:45:38 +00:00
defacer
cb8057dee2
Semantically it's better if quiz_get_best_grade returns NULL
...
if there is no such grade.
2005-01-27 02:39:15 +00:00
defacer
d5838a4b20
Double quotes to single and blah blah.
2005-01-27 02:30:32 +00:00
defacer
9d6773603d
Minor beautification, plus a detail: if the grade is 0.0, this function
...
would return a grade of 0, which is obviously not the intent here.
2005-01-27 02:28:04 +00:00
defacer
e7a935aafa
This was pulling out all those records and doing absolutely nothing
...
with them. Sanitized the place a bit.
2005-01-27 02:26:00 +00:00
mjollnir_
f63a559570
Fixing bug #2419 - missing global $CFG in upgrade for choice resulting in missing prefix
2005-01-27 02:17:35 +00:00
thepurpleblob
7452a56110
HTML Entities are now 'reversed' on import.
2005-01-26 10:37:16 +00:00
thepurpleblob
8f0876a98b
Added example file of the learnwise import format
2005-01-26 10:36:31 +00:00
michaelpenne
07fe38c02b
added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function (forgot comments before)
2005-01-26 00:30:46 +00:00
michaelpenne
57bfe93dca
added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function
2005-01-26 00:25:20 +00:00
michaelpenne
eb65aeb7fd
security updates: parameter cleaning
2005-01-26 00:22:51 +00:00
thepurpleblob
1680925333
Adding Learnwise import - created by Alton College, Hampshire UK
...
Still to do testing etc.
2005-01-25 20:18:05 +00:00
moodler
039c0ec444
Removed some inline styles
2005-01-25 14:32:43 +00:00
moodler
d30867b0bf
Removed some THEME stuff
2005-01-25 14:28:47 +00:00
moodler
d3c8056258
Changes for XHTML and accessibility compatibility.
...
Tidied up layout and other minor changes.
2005-01-25 09:39:29 +00:00
moodler
48b29ba423
Moved rsslib.php from the rss directory to the lib directory with the
...
other libraries
2005-01-25 06:09:31 +00:00
thepurpleblob
84a93f1c24
Added empty array into question object for multiplier field in numeric questions
...
Stops a bunch of warnings when quiz is imported
2005-01-24 15:45:20 +00:00
defacer
9407d4563f
According to the final comments in SC#65:
...
Made isteacher() require that the first parameter (course id) be
specified and non-empty. If it is empty, [i.e., 0, which was used to
simulate what has now become isteacherinanycourse()], then the return
value IS correct but a warning is printed on screen. This should allow
us to track down any such calls in legacy modules without breaking Moodle.
The correct way to check for teacher status in ANY course is now to
call isteacherinanycourse().
2005-01-23 21:38:01 +00:00
gustav_delius
e6d10b266b
fixed sesskey bug reported by Eloy. Thanks Eloy.
2005-01-23 09:10:34 +00:00
moodler
6a855f5b89
Searching was still calling $usexml Bug #2413
2005-01-23 05:55:02 +00:00
moodler
6c4785c2f2
To stop people browsing modules
2005-01-23 04:15:13 +00:00
gustav_delius
0353801a2b
There is now a mechanism by which question types can have their own setup options. Because this does not change anything unless it is used I hope it is o.k. that I am submitting this without asking first. This is based on code by Mad Alex.
2005-01-22 22:27:16 +00:00
gustav_delius
0fc48cbfa5
question.php now uses sesskey. This means that all question type plug-ins will have to add it to their edit forms.
2005-01-22 20:08:45 +00:00
gustav_delius
010ec024b8
made multiple.php save to database in addition to $SESSION->modform and also introduced sesskey
2005-01-22 19:14:35 +00:00
gustav_delius
fc1bc87bb0
better parameter validation and some code cleanup for category.php
2005-01-22 19:03:05 +00:00
gustav_delius
4acc80ead1
if the current category is deleted then revert back to the default category
2005-01-22 18:59:10 +00:00
stronk7
1082105205
Modify sesskey behaviour. SC#73
2005-01-22 18:53:44 +00:00
gustav_delius
56b2152f69
better parameter validation and general code cleanup for edit.php
2005-01-22 18:17:33 +00:00
gustav_delius
873b77f0f5
previously I had forgotten to save sumgrades
2005-01-22 16:13:08 +00:00
gustav_delius
4ac04efaf7
quiz edit.php now saves changes to the quiz in the database as soon as the teacher makes them, see http://moodle.org/mod/forum/discuss.php?d=17167
2005-01-22 15:42:22 +00:00
moodler
bb3b56c633
Using divs to do the indenting, rather than <UL>
...
This probably needs to be named class
2005-01-22 08:45:47 +00:00
michaelpenne
29a014c05a
corrected the sesskey code
2005-01-21 23:13:53 +00:00
michaelpenne
4ea3ce2fcb
added sesskey code to remove the sesskey error from updating the lesson from view.php
2005-01-21 19:02:57 +00:00
moodler
f3f7d9e409
Changes for XHTML and accessibility compatibility. General tidy up.
2005-01-21 05:07:51 +00:00
moodler
31dedddba7
Fix help link
2005-01-21 04:58:16 +00:00
moodler
34027b1b41
Minor change
2005-01-21 04:38:46 +00:00
moodler
b1b1705aa4
Changes for XHTML and accessibility compatibility.
...
General code cleanup.
2005-01-21 04:23:38 +00:00
urs_hunkler
680afe2e26
_ added the DIV framework for new CSS
2005-01-19 13:16:29 +00:00
urs_hunkler
fe32b4f6d7
_ added the DIV framework for new CSS
2005-01-19 12:02:52 +00:00