fix: fragment include directive should include files in themes if they exist (#22880)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user