MDL-29739 question import used a bad default for text formats.
commit5eb400105070ea07f7db21bea0df7b51ab413ffb
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 31 Oct 2011 18:03:02 +0000 (31 18:03 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Thu, 3 Nov 2011 10:37:35 +0000 (3 10:37 +0000)
tree882295eb80c9404adc79c4dd276dd37891070eb6
parentf08f22c2677bef5c8047ef3bcce39728fc0c2d4e
MDL-29739 question import used a bad default for text formats.

The new logic is that the questiontext defaults to HTML if the format is
not specified, then all other fields default to the same format of the
question text.

However, good practice is that the XML file should specify the format
for each bit of text content.

This code is not 100% backwards-compatible, since some methods have new
arguments, however for question types that have not been updated, it
will just generate a PHP Warning, which is, I think, and OK way to let
qtype developers know that they need to update their question types.
question/format/xml/format.php
question/format/xml/simpletest/testxmlformat.php