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