Commit 22572bf8 by ichuang

fix multicourse to properly set COURSE_TITLE (navigation.html uses settings.COURSE_TITLE)

parent d7d831b4
......@@ -43,7 +43,9 @@ else: # default to 6.002_Spring_2012
# wrapper functions around course settings
def get_coursename_from_request(request):
if 'coursename' in request.session: coursename = request.session['coursename']
if 'coursename' in request.session:
coursename = request.session['coursename']
settings.COURSE_TITLE = get_course_title(coursename) # overwrite settings.COURSE_TITLE based on this
else: coursename = None
return coursename
......
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