@@ 622-626 (lines=5) @@ | ||
619 | $possiblePath .= $course->getDirectory(); |
|
620 | $possiblePath .= '/course-pic.png'; |
|
621 | ||
622 | if (file_exists($possiblePath)) { |
|
623 | $courseItem['course_img'] = api_get_path(WEB_COURSE_PATH) |
|
624 | . $course->getDirectory() |
|
625 | . '/course-pic.png'; |
|
626 | } |
|
627 | ||
628 | $courseCatalog[] = $courseItem; |
|
629 | } |
|
@@ 675-679 (lines=5) @@ | ||
672 | $possiblePath .= $course->getDirectory(); |
|
673 | $possiblePath .= '/course-pic.png'; |
|
674 | ||
675 | if (file_exists($possiblePath)) { |
|
676 | $courseInfo['course_img'] = api_get_path(WEB_COURSE_PATH) |
|
677 | . $course->getDirectory() |
|
678 | . '/course-pic.png'; |
|
679 | } |
|
680 | ||
681 | return $courseInfo; |
|
682 | } |