Browse files

MDL-9005 Fixed this and another multilang issue (module name in previ…

…ew didn't filter multilang tags either).
  • Loading branch information...
1 parent 4912fa4 commit ae7805aec3bca956e1ad3bb38ceabec3f80601d5 nicolasconnault committed Aug 28, 2007
Showing with 3 additions and 3 deletions.
  1. +2 −2 question/preview.php
  2. +1 −1 question/type/match/questiontype.php
View
4 question/preview.php
@@ -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;
View
2 question/type/match/questiontype.php
@@ -173,7 +173,7 @@ function restore_session_and_responses(&$question, &$state) {
// 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);

0 comments on commit ae7805a

Please sign in to comment.