diff --git a/course/category.php b/course/category.php index 2ec7dcece2a..e64a0dab5ec 100644 --- a/course/category.php +++ b/course/category.php @@ -273,8 +273,8 @@ foreach ($subcategories as $subcategory) { $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); @@ -340,8 +340,7 @@ if (!$courses) { $linkcss = $acourse->visible ? '' : ' class="dimmed" '; echo '