mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-20636 Review and fix the format parameter to all calls to format_text.
This commit is contained in:
parent
a18fda20c4
commit
22cebed503
20 changed files with 100 additions and 69 deletions
|
@ -252,10 +252,11 @@ abstract class qtype_with_combined_feedback_renderer extends qtype_renderer {
|
|||
}
|
||||
|
||||
$feedback = '';
|
||||
$feedbackfield = $state->get_feedback_class() . 'feedback';
|
||||
if ($question->$feedbackfield) {
|
||||
$feedback .= $question->format_text($question->$feedbackfield, $qa,
|
||||
'question', $feedbackfield, $question->id);
|
||||
$field = $state->get_feedback_class() . 'feedback';
|
||||
$format = $state->get_feedback_class() . 'feedbackformat';
|
||||
if ($question->$field) {
|
||||
$feedback .= $question->format_text($question->$field, $question->$format,
|
||||
$qa, 'question', $field, $question->id);
|
||||
}
|
||||
|
||||
return $feedback;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue