diff --git a/question/type/ddimageortext/question.php b/question/type/ddimageortext/question.php index bb716b567cae2..84d57f03c279e 100644 --- a/question/type/ddimageortext/question.php +++ b/question/type/ddimageortext/question.php @@ -51,14 +51,14 @@ class qtype_ddimageortext_drag_item { public $text; public $no; public $group; - public $isinfinite; + public $infinite; - public function __construct($alttextlabel, $no, $group = 1, $isinfinite = false, $id = 0) { + public function __construct($alttextlabel, $no, $group = 1, $infinite = false, $id = 0) { $this->id = $id; $this->text = $alttextlabel; $this->no = $no; $this->group = $group; - $this->isinfinite = $isinfinite; + $this->infinite = $infinite; } public function choice_group() { return $this->group; diff --git a/question/type/ddimageortext/questiontype.php b/question/type/ddimageortext/questiontype.php index 866cf4af90aef..771a71a3a683b 100644 --- a/question/type/ddimageortext/questiontype.php +++ b/question/type/ddimageortext/questiontype.php @@ -274,7 +274,8 @@ public function import_from_xml($data, $question, $format, $extra=null) { } $format->import_combined_feedback($question, $data, true); - $format->import_hints($question, $data, true); + $format->import_hints($question, $data, true, false, + $format->get_format($question->questiontextformat)); return $question; } diff --git a/question/type/ddimageortext/rendererbase.php b/question/type/ddimageortext/rendererbase.php index a6a2ab77c87e3..a8d72c62f0142 100644 --- a/question/type/ddimageortext/rendererbase.php +++ b/question/type/ddimageortext/rendererbase.php @@ -77,7 +77,7 @@ public function formulation_and_controls(question_attempt $qa, 'draghome', "dragitemhomes{$dragimage->no}", "choice{$choiceno}"); - if ($dragimage->isinfinite) { + if ($dragimage->infinite) { $classes[] = 'infinite'; } if ($dragimageurl === null) {