MDL-9005 Fixed this and another multilang issue (module name in preview didn't filter multilang tags either).

This commit is contained in:
nicolasconnault
2007-08-28 15:07:13 +00:00
parent 4912fa485e
commit ae7805aec3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -182,8 +182,8 @@
print_heading($strpreview);
if (!empty($quizid)) {
echo '<p align="center">'.get_string('modulename', 'quiz') . ': ';
p($quiz->name);
echo '<p class="quemodname">'.get_string('modulename', 'quiz') . ': ';
p(format_string($quiz->name));
echo "</p>\n";
}
$number = 1;
+1 -1
View File
@@ -173,7 +173,7 @@ class question_match_qtype extends default_questiontype {
// answers per question, each with different marks and feedback.
$answer = new stdClass();
$answer->id = $subquestion->code;
$answer->answer = $subquestion->answertext;
$answer->answer = format_string($subquestion->answertext);
$answer->fraction = 1.0;
$state->options->subquestions[$key]->options
->answers[$subquestion->code] = clone($answer);