Skip to content

Commit f1667d1

Browse files
committed
Course categories: Add link on course name
1 parent e40e36d commit f1667d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/inc/ajax/course_category.ajax.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
$result = '';
3232
foreach ($courses as $course) {
3333
$row++;
34-
$table->setCellContents($row, 0, $course['title']);
34+
$courseLink = '<a href="'.api_get_path(WEB_PATH).'courses/'.$course['code'].'/index.php">'.$course['title'].'</a>';
35+
$table->setCellContents($row, 0, $courseLink);
3536
}
3637

3738
echo $table->toHtml();

0 commit comments

Comments
 (0)