misc: fix rendering of legacy themes (#52885)
gitea-wip/wcs/pipeline/head Build started... Details
gitea/wcs/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2021-04-09 08:13:54 +02:00
parent f3bc4ec278
commit f356c9d924
1 changed files with 6 additions and 6 deletions

View File

@ -386,13 +386,13 @@ def decorate(body, response):
continue
break
if template_ezt:
generate_breadcrumb = '[breadcrumb]' in template_ezt
if template_ezt:
generate_breadcrumb = '[breadcrumb]' in template_ezt
template = ezt.Template()
template.parse(template_ezt)
else:
template = default_template
template = ezt.Template()
template.parse(template_ezt)
else:
template = default_template
fd = io.StringIO()
vars = get_decorate_vars(body, response, generate_breadcrumb=generate_breadcrumb)