MDL-60421 tool_cohortroles: fix deprecated call.
authorDan Marsden <dan@danmarsden.com>
Thu, 1 Feb 2018 07:58:31 +0000 (20:58 +1300)
committerDan Marsden <dan@danmarsden.com>
Thu, 1 Feb 2018 07:58:31 +0000 (20:58 +1300)
admin/tool/cohortroles/classes/output/cohort_role_assignments_table.php

index 08c8c3f..29405c2 100644 (file)
@@ -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);