Commit 7377f4bd by chrisndodge

Merge pull request #1238 from MITx/fix/cdodge/turn-of-module-wrappers

make sure we turn off module wrappers for the 'ancillary' course content
parents ca32a8b0 99750a68
...@@ -148,7 +148,7 @@ def get_course_about_section(course, section_key): ...@@ -148,7 +148,7 @@ def get_course_about_section(course, section_key):
request = get_request_for_thread() request = get_request_for_thread()
loc = course.location._replace(category='about', name=section_key) loc = course.location._replace(category='about', name=section_key)
course_module = get_module(request.user, request, loc, None, course.id, not_found_ok = True, wrap_xmodule_display = True) course_module = get_module(request.user, request, loc, None, course.id, not_found_ok = True, wrap_xmodule_display = False)
html = '' html = ''
...@@ -186,7 +186,7 @@ def get_course_info_section(request, cache, course, section_key): ...@@ -186,7 +186,7 @@ def get_course_info_section(request, cache, course, section_key):
loc = Location(course.location.tag, course.location.org, course.location.course, 'course_info', section_key) loc = Location(course.location.tag, course.location.org, course.location.course, 'course_info', section_key)
course_module = get_module(request.user, request, loc, cache, course.id, wrap_xmodule_display = True) course_module = get_module(request.user, request, loc, cache, course.id, wrap_xmodule_display = False)
html = '' html = ''
if course_module is not None: if course_module is not None:
......
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