tools (common/template): fixed theme parsing when there is no "/" in parenthesis
This commit is contained in:
parent
94f149bce6
commit
0edb94b0a2
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue