smtp_templates.go: use STATIC instead of COMMENTO_STATIC
This commit is contained in:
parent
0d6c3b5992
commit
9d5e4f9f96
@ -39,7 +39,7 @@ Subject: {{.Subject}}
|
||||
for _, name := range names {
|
||||
var err error
|
||||
templates[name] = template.New(name)
|
||||
templates[name], err = template.ParseFiles(fmt.Sprintf("%s/templates/%s.html", os.Getenv("COMMENTO_STATIC"), name))
|
||||
templates[name], err = template.ParseFiles(fmt.Sprintf("%s/templates/%s.html", os.Getenv("STATIC"), name))
|
||||
if err != nil {
|
||||
logger.Errorf("cannot parse %s/templates/%s.html: %v", os.Getenv("STATIC"), name, err)
|
||||
return errorMalformedTemplate
|
||||
|
Loading…
Reference in New Issue
Block a user