fix: fragment include directive should include files in themes if they exist (#22880)

This commit is contained in:
Adam Butterworth
2020-01-17 09:00:03 -05:00
committed by GitHub
parent 5e583a27df
commit ca1dfbce70

View File

@@ -92,7 +92,7 @@ dirs = settings.DEFAULT_TEMPLATE_ENGINE['DIRS']
theme = get_current_theme()
if theme:
dirs = list(dirs)
dirs.insert(0, theme.path / 'templates')
dirs.append(theme.path / 'templates')
engine = Engine(dirs=dirs)
loader = Loader(engine)