Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
b6c38d3c
Commit
b6c38d3c
authored
12 years ago
by
ichuang
Browse files
Options
Downloads
Patches
Plain Diff
replace_static_urls should only be run once (currently twice, eg if
html is in a veritical)
parent
f99eb930
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/djangoapps/xmodule_modifiers.py
+2
-0
2 additions, 0 deletions
common/djangoapps/xmodule_modifiers.py
with
2 additions
and
0 deletions
common/djangoapps/xmodule_modifiers.py
+
2
−
0
View file @
b6c38d3c
...
...
@@ -43,6 +43,8 @@ def replace_static_urls(get_html, prefix, module):
@wraps
(
get_html
)
def
_get_html
():
if
type
(
module
)
in
[
SequenceModule
,
VerticalModule
]:
# TODO: make this more general, eg use an XModule attribute instead
return
get_html
()
return
replace_urls
(
get_html
(),
staticfiles_prefix
=
prefix
)
return
_get_html
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment