quiz editing: MDL-17294 added a call to quiz_question_tostring()

This commit is contained in:
pilpi
2008-11-28 18:47:46 +00:00
parent 8c4d6dd2a2
commit 94da24dc76
+1 -4
View File
@@ -737,8 +737,6 @@ function quiz_print_singlequestion(&$question, &$questionurl, &$quiz){
$formatoptions->noclean = false;
$formatoptions->para = false;
$formatoptions->newlines = false;
$questiontext=strip_tags(format_text($question->questiontext,
FORMAT_MOODLE,$formatoptions, $COURSE->id));
if (question_has_capability_on($question, 'edit', $question->category)
|| question_has_capability_on($question, 'move',
$question->category)) {
@@ -759,8 +757,7 @@ function quiz_print_singlequestion(&$question, &$questionurl, &$quiz){
"alt=\"$strview\" /></span>".
"</a>";
}else{
//TODO: this should be a call to quiz_question_tostring, right?
echo $questiontext;
quiz_question_tostring($question,false,true,false);
}
echo '<span class="questiontype">';
$namestr = $QTYPES[$question->qtype]->menu_name();