Merge branch 'MDL-84708-master' of https://github.com/danghieu1407/moodle

This commit is contained in:
Huong Nguyen
2025-05-08 09:46:53 +07:00
4 changed files with 20 additions and 14 deletions
+4 -4
View File
@@ -459,14 +459,14 @@ abstract class question_definition {
/** @return the result of applying {@link format_text()} to the question text. */
public function format_questiontext($qa) {
return $this->format_text($this->questiontext, $this->questiontextformat,
$qa, 'question', 'questiontext', $this->id);
return html_writer::tag('div', $this->format_text($this->questiontext, $this->questiontextformat,
$qa, 'question', 'questiontext', $this->id), ['class' => 'clearfix']);
}
/** @return the result of applying {@link format_text()} to the general feedback. */
public function format_generalfeedback($qa) {
return $this->format_text($this->generalfeedback, $this->generalfeedbackformat,
$qa, 'question', 'generalfeedback', $this->id);
return html_writer::tag('div', $this->format_text($this->generalfeedback, $this->generalfeedbackformat,
$qa, 'question', 'generalfeedback', $this->id), ['class' => 'clearfix']);
}
/**