Commit f5b232a7 by Douglas Hall

Fix release branch rebase

parent 1711feb6
...@@ -14,7 +14,7 @@ def course_image_url(course, image_key='course_image'): ...@@ -14,7 +14,7 @@ def course_image_url(course, image_key='course_image'):
"""Try to look up the image url for the course. If it's not found, """Try to look up the image url for the course. If it's not found,
log an error and return the dead link. log an error and return the dead link.
image_key can be one of the three: 'course_image', 'hero_image', 'thumbnail_image' """ image_key can be one of the three: 'course_image', 'hero_image', 'thumbnail_image' """
if course.static_asset_path or modulestore().get_modulestore_type(course.id) == ModuleStoreEnum.Type.xml: if course.static_asset_path:
# If we are a static course with the image_key attribute # If we are a static course with the image_key attribute
# set different than the default, return that path so that # set different than the default, return that path so that
# courses can use custom course image paths, otherwise just # courses can use custom course image paths, otherwise just
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment