MDL-60421 tool_cohortroles: fix deprecated call.

This commit is contained in:
Dan Marsden
2018-02-06 10:51:52 +01:00
committed by David Monllao
parent 00ab44ee52
commit e3db31ac67
@@ -98,7 +98,7 @@ class cohort_role_assignments_table extends table_sql {
);
$context = context_helper::instance_by_id($data->cohortcontextid);
$exporter = new \tool_lp\external\cohort_summary_exporter($record, array('context' => $context));
$exporter = new \core_cohort\external\cohort_summary_exporter($record, array('context' => $context));
$cohort = $exporter->export($OUTPUT);
$html = $OUTPUT->render_from_template('tool_cohortroles/cohort-in-list', $cohort);