Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 1573... Línea 1573...
1573
        if (core_tag_tag::is_enabled('core_question', 'question')) {
1573
        if (core_tag_tag::is_enabled('core_question', 'question')) {
1574
            $tagobjects = core_tag_tag::get_item_tags('core_question', 'question', $question->id);
1574
            $tagobjects = core_tag_tag::get_item_tags('core_question', 'question', $question->id);
Línea 1575... Línea 1575...
1575
 
1575
 
1576
            if (!empty($tagobjects)) {
1576
            if (!empty($tagobjects)) {
1577
                $context = context::instance_by_id($contextid);
1577
                $context = context::instance_by_id($contextid);
Línea 1578... Línea 1578...
1578
                $sortedtagobjects = question_sort_tags($tagobjects, $context, [$this->course]);
1578
                $sortedtagobjects = question_sort_tags($tagobjects, $context);
1579
 
1579
 
1580
                if (!empty($sortedtagobjects->coursetags)) {
1580
                if (!empty($sortedtagobjects->coursetags)) {
1581
                    // Set them on the form to be rendered as existing tags.
1581
                    // Set them on the form to be rendered as existing tags.