MDL-65029 questions: refactor generation of question div id

We are planning to change the id in Moodle 3.7. However, the new
method name has been back-ported to stable branches, because we
know a lot of third-party question types like to have a single
branch which supports multiple Moodle versions.
This commit is contained in:
Tim Hunt
2019-03-29 13:44:46 +00:00
parent d28abb632d
commit 403f2d450c
5 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ class core_question_renderer extends plugin_renderer_base {
$output = '';
$output .= html_writer::start_tag('div', array(
'id' => 'q' . $qa->get_slot(),
'id' => $qa->get_outer_question_div_unique_id(),
'class' => implode(' ', array(
'que',
$qa->get_question()->qtype->name(),