diff --git a/renderer.php b/renderer.php index 080f56d..623c542 100755 --- a/renderer.php +++ b/renderer.php @@ -167,6 +167,7 @@ public function app_connect(qtype_gapfill_question $question, string $questionte */ public function embedded_element(question_attempt $qa, $place, question_display_options $options, $markedgaps) { /* fraction is the mark associated with this field, always 1 or 0 for this question type */ + /** @var \qtype_gapfill_question $question */ $question = $qa->get_question(); $fieldname = $question->field($place); @@ -361,6 +362,7 @@ protected function get_itemsettings(string $rightanswer) { public function get_input_class(array $markedgaps, question_attempt $qa, $fraction, $fieldname) { $response = $qa->get_last_qt_data(); $question = $qa->get_question(); + $inputclass = $this->feedback_class($fraction); foreach ($markedgaps as $gap) { if ($response[$fieldname] == $gap['value']) {