← All changes
|
inc/TemplateHooks/Admin/AdminListStudentsEnrolled.php
+3
-1
4.4.8
→
4.4.9
View file →
| @@ -592,9 +592,11 @@ | ||
| 592 | 592 | $graduation = $userCourseModel->get_graduation(); |
| 593 | 593 | $status_raw = $graduation !== UserItemModel::GRADUATION_IN_PROGRESS |
| 594 | 594 | ? $userCourseModel->get_graduation() |
| 595 | 595 | : $userCourseModel->get_status(); |
| 596 | - $status_label = ucfirst( str_replace( array( '-', '_' ), ' ', $status_raw ) ); | |
| 596 | + $status_label = $graduation !== UserItemModel::GRADUATION_IN_PROGRESS | |
| 597 | + ? $userCourseModel->get_graduation_label() | |
| 598 | + : $userCourseModel->get_status_label(); | |
| 597 | 599 | $badge_class = 'lp-badge--' . sanitize_html_class( $status_raw ); |
| 598 | 600 | |
| 599 | 601 | // Date. |
| 600 | 602 | $date = UserCourseTemplate::instance()->html_start_date_time( $userCourseModel, false ); |