Skip to content

Commit

Permalink
don't set in quiz except in jisc case
Browse files Browse the repository at this point in the history
  • Loading branch information
milt committed Oct 8, 2024
1 parent 569139e commit d6f5f3c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/transformer/utils/get_activity/course_quiz.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@
* @return array
*/
function course_quiz(array $config, \stdClass $course, string $cmid) {
$xapytype = 'http://adlnet.gov/expapi/activities/assessment';

// JISC specific activity type.
if (utils\is_enabled_config($config, 'send_jisc_data')) {
$xapytype = 'http://xapi.jisc.ac.uk/activities/quiz';
return utils\get_activity\course_module(
$config, $course, $cmid, 'http://xapi.jisc.ac.uk/activities/quiz'
);
} else {
return utils\get_activity\course_module($config, $course, $cmid);
}

return utils\get_activity\course_module($config, $course, $cmid, $xapytype);
}

0 comments on commit d6f5f3c

Please sign in to comment.