Skip to content
Snippets Groups Projects
Commit 696349bb authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Fix error thrown by unit tests in render.

parent c9f82ac9
Branches
No related tags found
No related merge requests found
...@@ -485,8 +485,8 @@ class qtype_stack_renderer extends qtype_renderer { ...@@ -485,8 +485,8 @@ class qtype_stack_renderer extends qtype_renderer {
if (empty($hint->hint)) { if (empty($hint->hint)) {
return ''; return '';
} }
$question = $qa->get_question();
$hinttext = $qa->get_question()->get_hint_castext($hint); $hinttext = $question->get_hint_castext($hint);
// If called out of order. // If called out of order.
if ($question->castextprocessor === null) { if ($question->castextprocessor === null) {
...@@ -499,7 +499,7 @@ class qtype_stack_renderer extends qtype_renderer { ...@@ -499,7 +499,7 @@ class qtype_stack_renderer extends qtype_renderer {
); );
return html_writer::nonempty_tag('div', return html_writer::nonempty_tag('div',
$qa->get_question()->format_hint($newhint, $qa), array('class' => 'hint')); $question->format_hint($newhint, $qa), array('class' => 'hint'));
} }
public function correct_response(question_attempt $qa) { public function correct_response(question_attempt $qa) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment