MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions when they contain a slash. Merged from MOODLE_18_STABLE.

This commit is contained in:
tjhunt
2007-09-21 18:28:45 +00:00
parent 2f67d1f809
commit ec2692a699
+2 -2
View File
@@ -382,7 +382,7 @@ class question_shortanswer_qtype extends default_questiontype {
// MDL-7496
if ($correctanswer) {
echo ('<div class="correctness">');
print_string('correctansweris', 'quiz', s($correctanswer));
print_string('correctansweris', 'quiz', s($correctanswer, true));
echo ('</div>');
}
} else {
@@ -391,7 +391,7 @@ class question_shortanswer_qtype extends default_questiontype {
print_string('incorrect', 'quiz');
if ($correctanswer) {
echo ('<div class="correctness">');
print_string('correctansweris', 'quiz', s($correctanswer));
print_string('correctansweris', 'quiz', s($correctanswer, true));
echo ('</div>');
}
}