tools (common/template): fixed theme parsing when there is no "/" in parenthesis

This commit is contained in:
Goffi 2019-05-25 15:13:35 +02:00
commit 0edb94b0a2

View file

@ -117,7 +117,7 @@ class TemplateLoader(jinja2.BaseLoader):
theme_data = template[1:theme_end]
theme_splitted = theme_data.split(u'/')
if len(theme_splitted) == 1:
site, theme = u"", theme_splitted
site, theme = u"", theme_splitted[0]
elif len(theme_splitted) == 2:
site, theme = theme_splitted
else: