mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
92 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.