mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-20636 Review and fix the format parameter to all calls to format_text.
This commit is contained in:
parent
a18fda20c4
commit
22cebed503
20 changed files with 100 additions and 69 deletions
|
@ -113,6 +113,8 @@ class test_question_maker {
|
|||
$tf->rightanswer = true;
|
||||
$tf->truefeedback = 'This is the right answer.';
|
||||
$tf->falsefeedback = 'This is the wrong answer.';
|
||||
$tf->truefeedbackformat = FORMAT_HTML;
|
||||
$tf->falsefeedbackformat = FORMAT_HTML;
|
||||
$tf->trueanswerid = 13;
|
||||
$tf->falseanswerid = 14;
|
||||
|
||||
|
@ -193,10 +195,13 @@ class test_question_maker {
|
|||
|
||||
self::set_standard_combined_feedback_fields($match);
|
||||
|
||||
// Using unset to get 1-based arrays.
|
||||
$match->stems = array('', 'Dog', 'Frog', 'Toad', 'Cat');
|
||||
$match->stemformat = array('', FORMAT_HTML, FORMAT_HTML, FORMAT_HTML, FORMAT_HTML);
|
||||
$match->choices = array('', 'Mammal', 'Amphibian', 'Insect');
|
||||
$match->right = array('', 1, 2, 2, 1);
|
||||
unset($match->stems[0]);
|
||||
unset($match->stemformat[0]);
|
||||
unset($match->choices[0]);
|
||||
unset($match->right[0]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue