From 7db37fd580090bb5563250cdf97a3aecbab80b9e Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Tue, 28 Aug 2007 13:22:16 +0000 Subject: [PATCH] MDL-9005 Fixed this and another multilang issue (module name in preview didn't filter multilang tags either). --- question/preview.php | 2 +- question/type/match/questiontype.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/question/preview.php b/question/preview.php index 7b15cc41be3..13ec7190e8a 100644 --- a/question/preview.php +++ b/question/preview.php @@ -184,7 +184,7 @@ if (!empty($quizid)) { echo '

'.get_string('modulename', 'quiz') . ': '; - p($quiz->name); + p(format_string($quiz->name)); echo "

\n"; } $number = 1; diff --git a/question/type/match/questiontype.php b/question/type/match/questiontype.php index 2696b9ad94f..703758a8550 100644 --- a/question/type/match/questiontype.php +++ b/question/type/match/questiontype.php @@ -168,7 +168,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);