misc: fix order of templates locations (#25426)

This commit is contained in:
Frédéric Péters 2018-07-23 14:59:51 +02:00
parent 320bf52374
commit 9285a40615
1 changed files with 1 additions and 1 deletions

View File

@ -36,8 +36,8 @@ class TemplateLoader(django.template.loaders.filesystem.Loader):
'templates', 'variants', theme))
template_dirs.append(os.path.join(get_publisher().app_dir,
'theme', 'templates', 'variants', theme))
template_dirs.append(os.path.join(get_publisher().app_dir, 'theme', 'templates'))
template_dirs.append(os.path.join(get_publisher().app_dir, 'templates'))
template_dirs.append(os.path.join(get_publisher().app_dir, 'theme', 'templates'))
current_theme = get_cfg('branding', {}).get('theme', 'default')
theme_directory = get_theme_directory(current_theme)