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