From: tjhunt Date: Fri, 21 Sep 2007 18:28:45 +0000 (+0000) Subject: MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ec2692a6990568d71b9c684d1f4ea1d76f7a96ca;p=moodle.git MDL-11316 - Extra slashes appearing in the correct answer of shortanswer questions when they contain a slash. Merged from MOODLE_18_STABLE. --- diff --git a/question/type/shortanswer/questiontype.php b/question/type/shortanswer/questiontype.php index 797b63b689..5637a30271 100644 --- a/question/type/shortanswer/questiontype.php +++ b/question/type/shortanswer/questiontype.php @@ -382,7 +382,7 @@ class question_shortanswer_qtype extends default_questiontype { // MDL-7496 if ($correctanswer) { echo ('
'); - print_string('correctansweris', 'quiz', s($correctanswer)); + print_string('correctansweris', 'quiz', s($correctanswer, true)); echo ('
'); } } else { @@ -391,7 +391,7 @@ class question_shortanswer_qtype extends default_questiontype { print_string('incorrect', 'quiz'); if ($correctanswer) { echo ('
'); - print_string('correctansweris', 'quiz', s($correctanswer)); + print_string('correctansweris', 'quiz', s($correctanswer, true)); echo ('
'); } }