From 6aba24c61ee74beec0f053b45ebd57dc54e11523 Mon Sep 17 00:00:00 2001 From: Wessie Date: Sat, 27 Apr 2024 00:10:42 +0100 Subject: [PATCH] templates: make admin templates actually load DEFAULT_DIR first --- templates/loader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/loader.go b/templates/loader.go index a864fce2..a104bcf7 100644 --- a/templates/loader.go +++ b/templates/loader.go @@ -370,7 +370,7 @@ func noExt(s string) string { return strings.TrimSuffix(filepath.Base(s), filepath.Ext(s)) } -func (ls loadState) loadThemes(themes Themes, defaultDir string, dirs []string) error { +func (ls *loadState) loadThemes(themes Themes, defaultDir string, dirs []string) error { const op errors.Op = "templates/loadState.loadThemes" var defaults loadStateDefault var err error