MDL-71378 core_question & mod_quiz: Refactor deprecated contexts
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user