MDL-71378 core_question & mod_quiz: Refactor deprecated contexts

This commit is contained in:
Simon Adams
2024-11-18 10:22:59 +00:00
parent 5955868d3d
commit a0cf3d2da5
183 changed files with 1266 additions and 2721 deletions
+1 -1
View File
@@ -1575,7 +1575,7 @@ class qformat_xml extends qformat_default {
if (!empty($tagobjects)) {
$context = context::instance_by_id($contextid);
$sortedtagobjects = question_sort_tags($tagobjects, $context, [$this->course]);
$sortedtagobjects = question_sort_tags($tagobjects, $context);
if (!empty($sortedtagobjects->coursetags)) {
// Set them on the form to be rendered as existing tags.