169 Commits

Author SHA1 Message Date
thepurpleblob
9843511764 MDL-17779
Add simple check that question at least has questiontext before allowing it.
2009-01-05 15:23:10 +00:00
dongsheng
9ee948813a "MDL-14129, fixed hardcoded print_error" 2008-09-25 08:03:54 +00:00
skodak
4313348e36 MDL-14679 fixed some more addslashes() 2008-09-23 21:22:04 +00:00
skodak
4370f063b3 MDL-16644 removing stripslahses() and friends 2008-09-23 21:15:41 +00:00
thepurpleblob
3695cfa93f MDL-16570
Use CDATA sections for text where required. More readable and less error
prone.

Merged from MOODLE_19_STABLE
2008-09-19 10:01:47 +00:00
thepurpleblob
73b7b195ed MDL-16198
Blackboard V6+ can now handle the .dat file directly as an option to the .zip file
Some changes needed to recover the original filename.

Merged from STABLE_19
2008-08-28 13:49:25 +00:00
thepurpleblob
33ed59a208 MDL-16252
Fixed some notices with essay questions when there is no feedback

Merged from STABLE_19
2008-08-28 10:59:22 +00:00
thepurpleblob
b81d2dbee3 MDL-16250
Added support for Essay type questions

Merged from STABLE_19
2008-08-28 10:07:51 +00:00
thepurpleblob
4a5d721cd6 MDL-8130
Change html_entity_decode to PHP5 version and also fix problem with shortening question to derive name.
2008-08-19 10:46:27 +00:00
scyrma
c951bf6e29 Little bit of performance improvement. 2008-08-19 06:03:18 +00:00
tjhunt
bd379592df MDL-14431 - followup: after the rename qti2 -> qti_two, there were still some references to the old qti2 folder name. 2008-08-15 03:23:04 +00:00
tjhunt
6d99cadd0f MDL-16057 - Blackboard import format relies on lib/tcpdf/html_entity_decode_php4.php, which no longer exists. This is not a fix. It just does enough so you can use other import formats. 2008-08-15 03:22:33 +00:00
tjhunt
5712be1c6f MDL-16056 - Aiken format should treat input as plain text, and so escape HTML special characters. 2008-08-15 03:13:24 +00:00
tjhunt
6e0ddb6b71 MDL-14431 - followup: after the rename qti2 -> qti_two, there were still some references to the old qti2 folder name. 2008-08-15 02:44:12 +00:00
thepurpleblob
6e01bf1535 MDL-15885
QTI fixes from Niall Barr

Merged from STABLE_19
2008-08-04 10:20:51 +00:00
dongsheng
ac93d63d2a MDL-14129, remove error() in question module 2008-07-24 04:20:44 +00:00
tjhunt
e6099294d5 MDL-14413 - Invalid function name - is_image_by_extentsion in QTI export 2008-07-15 09:18:36 +00:00
tjhunt
cdfaa8386e Removing calls to depricated stripslashes. It is no longer needed with dmllib 2.0. 2008-07-14 15:29:30 +00:00
thepurpleblob
fb2ce31bfc MDL-14431:
Moving qti2 to qti_two as numbers are not allowed in module names
2008-07-11 10:49:08 +00:00
thepurpleblob
fba84198e5 MDL-14431:
Changing name of qti2 format, as digits not allowed in module names
2008-07-11 10:47:19 +00:00
thepurpleblob
f94902db28 MDL-15008
Make question import/export formats fully pluggable, especially in respect of languages.
2008-07-10 15:06:19 +00:00
scyrma
5a254a2938 MDL-14279: use get_file_url instead of checking $CFG->slashargument manually (merge from 1.9) 2008-07-10 09:55:11 +00:00
thepurpleblob
e7ef42f531 MDL-15473
Fixed typo causing the image location to be ignored if the base_64 image is not included.

Mereged from STABLE_19
2008-07-07 11:54:39 +00:00
thepurpleblob
169d0efa6c MDL-MDL-15173
Remove obsolete coursetestmanager format to contrib
2008-06-16 14:39:44 +00:00
dongsheng
d9f30321da "MDL-14129, fix print_error" 2008-06-15 11:07:51 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
nicolasconnault
f34488b2e6 MDL-15102 Upgrade to DMLLIB 2.0. Needs further testing and bug-fixing. 2008-06-06 14:43:15 +00:00
tjhunt
c0ffeb3969 MDL-14764 - Imported multichoice questions may have a blank answernumbering value, which results in an "ERR" prefix to all answers' text. Thanks to Nate H for the fix. 2008-05-27 13:42:27 +00:00
dongsheng
0be2c85848 "MDL-14129, fix print_error call" 2008-05-21 07:53:23 +00:00
skodak
42519b5d7e MDL-14451 removed 1.4 compatibility code 2008-05-12 22:56:48 +00:00
thepurpleblob
3f5633df11 MDL-14406
Ensure 'length' field for description type questions is 0 and that
default for all questions is 0

Merged from STABLE_19
2008-05-01 12:21:55 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
thepurpleblob
fc22da99e2 Added check for <text> fields that contain markup (an error!)
Merged from STABLE_19
2008-02-12 11:57:39 +00:00
gbateson
7433742566 MDL-13048 fix indefined course id when importing a Hot Potatoes quiz into the Lesson module 2008-02-05 04:13:51 +00:00
gbateson
9d042298ff fix for MDL-13174 ' replace calls to html_entity_decode() with hotpot_charcode_to_utf8() because html_entity_decode is broken in PHP4 2008-01-31 07:28:30 +00:00
thepurpleblob
86b685208d MDL-12016:
Read xml structure correctly to get category path.

Merged from STABLE_19
2008-01-15 14:52:49 +00:00
toyomoyo
3ea69b8d43 MDL-12346, lesson module GIFT import fails 2007-11-29 04:31:57 +00:00
tjhunt
0d4c63d7fb MDL-11825 - Force penaltyfactor to 1 for truefalse questions on GIFT import, as is done on the editing form. Merged from MOODLE_18_STABLE. 2007-10-25 09:43:06 +00:00
thepurpleblob
0db7823cf9 MDL-11769:
question name is properly truncated to less than 255 characters tom
stop PostGRES choking.
2007-10-15 13:50:57 +00:00
nicolasconnault
ed818bbdbf MDL-10905 iterating correctly with readdir (as shown in php doc) 2007-10-15 05:18:58 +00:00
gbateson
2958e18586 where the correct responses on a JQuiz multiple choice question all have a score of 0%, the scores will be corrected to 100% 2007-10-15 01:00:38 +00:00
skodak
03cedd6283 MDL-11432 eliminated majority of RecordCount uses, added several missing rs_close() - this should help improve perf on some platforms - Eloy says ;-) 2007-10-10 12:19:27 +00:00
thepurpleblob
6f8481ec0a MDL-11425:
Process the text properly for the category path.

Merged from STABLE_18.
2007-10-09 10:16:01 +00:00
skodak
42626376f3 MDL-11442 removed last instances of global $course 2007-09-27 08:18:28 +00:00
tjhunt
4ab4dcb27a MDL-10916 - Import and Export of Cloze question misses out "generalfeedback" column. Merged from MOODLE_17_STABLE. 2007-09-24 14:17:23 +00:00
thepurpleblob
ad2cd664d7 Typo!
Merged from STABLE_18
2007-09-18 12:30:19 +00:00
pichetp
7ba1111637 Correcting a little error: datesetitem = array(); instead of datasetitem = array();
line +-550 $question->dataset[$datasetname]->datasetitem = array();
2007-09-07 02:38:02 +00:00
thepurpleblob
13e88db4a2 MDL-10819:
GIFT now exports grade fractions for numeric questions

Merged from STABLE_18
2007-08-20 10:36:30 +00:00
thepurpleblob
d510ec64b6 MDL-10902:
Whoops! Overwrote question object. Variable name changed
Thanks to Adriane Boyd for spotting that one.

Merged from STABLE_18
2007-08-18 09:33:45 +00:00
thepurpleblob
4433fff5a8 Moved check for plugin import/export to the start rather than the end
Merged from STABLE_18
2007-08-17 09:47:51 +00:00