Skip to content

Commit aa3f62c

Browse files
Plugin: Custom certificate: Fix bug for certificates with learnpath index as content type
1 parent c8748f8 commit aa3f62c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main/lp/learnpathList.class.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class LearnpathList
2828
* (only displays) items if he has enough permissions to view them.
2929
*
3030
* @param int $user_id
31-
* @param array $courseInfo Optional course code (otherwise we use api_get_course_id())
31+
* @param array $courseInfo Optional course info array (otherwise we use api_get_course_info())
3232
* @param int $session_id Optional session id (otherwise we use api_get_session_id())
3333
* @param string $order_by
3434
* @param bool $check_publication_dates

plugin/customcertificate/src/print_certificate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class="caraA"
402402

403403
$list = new LearnpathList(
404404
$studentId,
405-
$courseCode,
405+
$courseInfo,
406406
$sessionId,
407407
null,
408408
false,

0 commit comments

Comments
 (0)