From 44ee0200a59547c69bf02f6606461b2ce6b37e0f Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Wed, 22 Aug 2012 20:19:58 -0400 Subject: [PATCH] Fix undefined variables if LMS_MIGRATION was off --- common/djangoapps/xmodule_modifiers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/djangoapps/xmodule_modifiers.py b/common/djangoapps/xmodule_modifiers.py index 86443520c2..17380bff18 100644 --- a/common/djangoapps/xmodule_modifiers.py +++ b/common/djangoapps/xmodule_modifiers.py @@ -112,6 +112,9 @@ def add_histogram(get_html, module, user): edit_link = "%s/%s/tree/master/%s" % (giturl,data_dir,filepath) else: edit_link = False + # Need to define all the variables that are about to be used + giturl = "" + data_dir = "" source_file = module.metadata.get('source_file','') # source used to generate the problem XML, eg latex or word staff_context = {'definition': module.definition.get('data'),