Commit 3baee506 authored by dario's avatar dario
Browse files

util/web: add default_theme to themes if not already present

parent cee474da
...@@ -117,7 +117,8 @@ def remote_is_internal_network(request): ...@@ -117,7 +117,8 @@ def remote_is_internal_network(request):
return False return False
available_themes = [it[1] for it in config.themes_by_url] available_themes = set([it[1] for it in config.themes_by_url])
available_themes.add(config.default_theme)
jinja_env = Environment(loader=ThemeSupportTemplateLoader(available_themes), cache_size=0) jinja_env = Environment(loader=ThemeSupportTemplateLoader(available_themes), cache_size=0)
jinja_env.globals['url_for'] = url_for jinja_env.globals['url_for'] = url_for
......
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