]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-6848 - Display problem with < > characters in shortanswer when outputting the...
authortjhunt <tjhunt>
Tue, 17 Oct 2006 22:17:17 +0000 (22:17 +0000)
committertjhunt <tjhunt>
Tue, 17 Oct 2006 22:17:17 +0000 (22:17 +0000)
lang/en_utf8/quiz.php
question/type/shortanswer/display.html

index 33e15d670f560ee1dd03b10a90aa54a5232c2959..c8c42bd8ad3dbbd8dd6f7e075d5e82cd69bf9955 100644 (file)
@@ -97,6 +97,7 @@ $string['copyingfrom'] = 'Creating a copy of the question \'$a\'';
 $string['copyingquestion'] = 'Copying a question';
 $string['correct'] = 'Correct';
 $string['correctanswer'] = 'Correct answer';
+$string['correctansweris'] = 'Correct answer: $a';
 $string['correctanswerformula'] = 'Correct Answer Formula';
 $string['correctanswerlength'] = 'Significant Figures';
 $string['correctanswers'] = 'Correct answers';
index 71c758f33a655d5eb8e2b9643dd3cc6d5dac5da9..ab9f6a326643d83740ab87defb073275501c0523 100644 (file)
@@ -24,6 +24,6 @@
 
 <?php if ($correctanswer) { ?>
     <div class="correctness correct">
-    <?php echo get_string('correctanswer', 'quiz').': '. $correctanswer; ?>
+    <?php print_string('correctansweris', 'quiz', s($correctanswer)); ?>
   </div>
 <?php } ?>