smtp_templates.go: use STATIC instead of COMMENTO_STATIC

This commit is contained in:
Adhityaa 2018-06-09 15:20:59 +05:30
parent 0d6c3b5992
commit 9d5e4f9f96

View File

@ -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