From b8b133d30c3e83836eda800787725be3a3ff965d Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 23 Jul 2012 16:31:52 -0400 Subject: [PATCH] Replace /static urls in all course snippets --- lms/djangoapps/courseware/courses.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/courseware/courses.py b/lms/djangoapps/courseware/courses.py index 1eb15f5d85..c65612772b 100644 --- a/lms/djangoapps/courseware/courses.py +++ b/lms/djangoapps/courseware/courses.py @@ -105,7 +105,7 @@ def get_course_info_section(course, section_key): if section_key in ['handouts', 'guest_handouts', 'updates', 'guest_updates']: try: with course.system.resources_fs.open(path("info") / section_key + ".html") as htmlFile: - return htmlFile.read().decode('utf-8') + return replace_urls(htmlFile.read().decode('utf-8'), course.metadata['data_dir']) except ResourceNotFoundError: log.exception("Missing info section {key} in course {url}".format(key=section_key, url=course.location.url())) return "! Info section missing !"