MDL-11317 - Slashes displayed in incorrect responses for short answer questions. Fix by adding stripslashes in the appropriate place.

This commit is contained in:
tjhunt 2007-09-18 12:15:10 +00:00
parent 0b58276ad0
commit dc1a8255ba
2 changed files with 3 additions and 4 deletions

View file

@ -333,7 +333,7 @@ class quiz_report extends quiz_default_report {
$qclass = 'partialcorrect';
}
$response->credit = '<span class="'.$qclass.'">('.format_float($q['credits'][$aid],2).') </span>';
$response->text = '<span class="'.$qclass.'">'.format_text("$resp", FORMAT_MOODLE, $format_options, $quiz->course).' </span>';
$response->text = '<span class="'.$qclass.'">'.format_text($resp, FORMAT_MOODLE, $format_options, $quiz->course).' </span>';
$count = $q['rcounts'][$aid].'/'.$q['count'];
$response->rcount = $count;
$response->rpercent = '('.format_float($q['rcounts'][$aid]/$q['count']*100,0).'%)';