$attributes = $subcategory->visible ? array() : array('class' => 'dimmed');
$text = format_string($subcategory->name, true, array('context' => $context));
// Add the subcategory to the table
- $url->param('id', $subcategory->id);
- $table->data[] = array(html_writer::link($url, $text, $attributes));
+ $baseurl->param('id', $subcategory->id);
+ $table->data[] = array(html_writer::link($baseurl, $text, $attributes));
}
$subcategorieswereshown = (count($table->data) > 0);
print_course_search();
-echo $OUTPUT->footer();
\ No newline at end of file
+echo $OUTPUT->footer();