From 9d5e4f9f96c25fc47101de390d591810c8165760 Mon Sep 17 00:00:00 2001 From: Adhityaa Date: Sat, 9 Jun 2018 15:20:59 +0530 Subject: [PATCH] smtp_templates.go: use STATIC instead of COMMENTO_STATIC --- api/smtp_templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/smtp_templates.go b/api/smtp_templates.go index c360264..d0aa6e7 100644 --- a/api/smtp_templates.go +++ b/api/smtp_templates.go @@ -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