MDL-20636 Review and fix the format parameter to all calls to format_text.

This commit is contained in:
Tim Hunt 2011-02-24 20:18:16 +00:00
parent a18fda20c4
commit 22cebed503
20 changed files with 100 additions and 69 deletions

View file

@ -67,11 +67,9 @@ function writequestion($question) {
// add header
$expout .= "<h3>$question->name</h3>\n";
// format and add question text
$questiontext = $question->questiontext;
$format = $question->questiontextformat;
$formatted_text = format_text($questiontext, $format);
$expout .= "<p class=\"questiontext\">$formatted_text</p>\n";
// Format and add the question text
$expout .= '<p class="questiontext">' . format_text($question->questiontext,
$question->questiontextformat); . "</p>\n";
// selection depends on question type
switch($question->qtype) {