module -> block in common/djangoapps/xmodule_modifiers.py

This commit is contained in:
ichuang
2013-10-16 15:38:39 -04:00
parent 9774348633
commit d0d18f8601

View File

@@ -148,7 +148,7 @@ def add_histogram(user, block, view, frag, context): # pylint: disable=unused-a
# if original, unmangled filename exists then use it (github
# doesn't like symlinks)
filepath = filename
data_dir = module.static_asset_path or osfs.root_path.rsplit('/')[-1]
data_dir = block.static_asset_path or osfs.root_path.rsplit('/')[-1]
giturl = block.giturl or 'https://github.com/MITx'
edit_link = "%s/%s/tree/master/%s" % (giturl, data_dir, filepath)
else: