Skip to content

Commit

Permalink
fix for issue-58
Browse files Browse the repository at this point in the history
  • Loading branch information
melvyng committed Jan 14, 2024
1 parent 1ffe3c9 commit 2fc1398
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@
$catlookup = $DB->get_records_sql('select id,name from {course_categories}');
$options = ['0' => get_string('allcourses', 'report_coursesize')];
foreach ($catlookup as $cat) {
$options[$cat->id] = format_string($cat->name, true, context_system::instance());
$context = context_system::instance();
$options[$cat->id] = format_string($cat->name, true, ['context' => $context]);
}

// Add in download option. Exports CSV.
Expand Down

0 comments on commit 2fc1398

Please sign in to comment.