Commit 324d286f by Calen Pennington

Don't reference .metadata for data_dir

parent 531eb80e
...@@ -86,7 +86,7 @@ def html_index(request, course_id, book_index, chapter=None, anchor_id=None): ...@@ -86,7 +86,7 @@ def html_index(request, course_id, book_index, chapter=None, anchor_id=None):
input_url = "'" + original_url + "'" input_url = "'" + original_url + "'"
output_url = replace_static_urls( output_url = replace_static_urls(
input_url, input_url,
course.metadata['data_dir'], getattr(course, 'data_dir', None),
course_namespace=course.location course_namespace=course.location
) )
# strip off the quotes again... # strip off the quotes again...
......
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