From: tjhunt Date: Tue, 13 Mar 2007 16:20:41 +0000 (+0000) Subject: Use the right string processing functions when outputting question names. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=70ed76670e18e9ea9c862ed629b28f4c58ceee7f;p=moodle.git Use the right string processing functions when outputting question names. --- diff --git a/question/editlib.php b/question/editlib.php index cf429b9abd..82cbfdd083 100644 --- a/question/editlib.php +++ b/question/editlib.php @@ -323,7 +323,7 @@ function question_list($course, $categoryid, $quizid=0, echo " id\" value=\"1\" />"; echo "\n"; - echo "" . $question->name . "\n"; + echo "" . format_string($question->name) . "\n"; echo "\n"; print_question_icon($question, $canedit); echo "\n"; diff --git a/question/preview.php b/question/preview.php index c14e30e579..b5389efd17 100644 --- a/question/preview.php +++ b/question/preview.php @@ -178,7 +178,7 @@ ->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);