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

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

\n"; } $number = 1; @@ -238,4 +238,4 @@ echo ''; echo ''; print_footer(); -?> \ No newline at end of file +?> diff --git a/question/type/match/questiontype.php b/question/type/match/questiontype.php index baa600b28..013215f3b 100644 --- a/question/type/match/questiontype.php +++ b/question/type/match/questiontype.php @@ -170,7 +170,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); -- 2.11.4.GIT