]> git.mjollnir.org Git - moodle.git/commitdiff
Use the right string processing functions when outputting question names.
authortjhunt <tjhunt>
Tue, 13 Mar 2007 16:20:41 +0000 (16:20 +0000)
committertjhunt <tjhunt>
Tue, 13 Mar 2007 16:20:41 +0000 (16:20 +0000)
question/editlib.php
question/preview.php

index cf429b9abd8b36e81387e0b037536ebf3e4f6508..82cbfdd0832dd53e0ca1e59e5e4fbf98de684c8f 100644 (file)
@@ -323,7 +323,7 @@ function question_list($course, $categoryid, $quizid=0,
         echo "&nbsp;<input title=\"$strselect\" type=\"checkbox\" name=\"q$question->id\" value=\"1\" />";
         echo "</td>\n";
 
-        echo "<td $nameclass>" . $question->name . "</td>\n";
+        echo "<td $nameclass>" . format_string($question->name) . "</td>\n";
         echo "<td $nameclass style='text-align: right'>\n";
         print_question_icon($question, $canedit);
         echo "</td>\n";
index c14e30e579d08e9ae6a12daf501b1df178f5d00a..b5389efd178293d126ee4089ae9e581145490bea 100644 (file)
          ->get_correct_responses($questions[$id], $curstate);
     }
 
-    $strpreview = get_string('preview', 'quiz').' '.s($questions[$id]->name);
+    $strpreview = get_string('preview', 'quiz').' '.format_string($questions[$id]->name);
     print_header($strpreview);
     print_heading($strpreview);