From 3116556d6e81dba2a5841d489b7b0bdc3065d9c9 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Mon, 11 Dec 2023 15:48:06 +0000 Subject: [PATCH] Correct options argument passed when formatting cohort. Fixes #12. --- classes/output/summary_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/output/summary_table.php b/classes/output/summary_table.php index 1a978ed..90adce1 100644 --- a/classes/output/summary_table.php +++ b/classes/output/summary_table.php @@ -109,7 +109,7 @@ public function format_row($row) { public function col_cohort(\stdClass $record) { $persistent = new persistent(0, $record); - return format_string($persistent->get_cohort()->name, true, \context_system::instance()); + return format_string($persistent->get_cohort()->name, true, ['context' => \context_system::instance()]); } /**