misc: fix order of templates locations (#25426)
This commit is contained in:
parent
320bf52374
commit
9285a40615
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue