summaryrefslogtreecommitdiff
path: root/tpls.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpls.go')
-rw-r--r--tpls.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/tpls.go b/tpls.go
index ff355fb..a3a86a1 100644
--- a/tpls.go
+++ b/tpls.go
@@ -2,6 +2,7 @@ package main
import (
"html/template"
+ "kch42.de/gostuff/mailremind/confhelper"
"log"
"path"
)
@@ -29,10 +30,7 @@ var (
)
func initTpls() {
- tplpath, err := conf.GetString("paths", "tpls")
- if err != nil {
- log.Fatalf("Could not get paths.tpls config: %s", err)
- }
+ tplpath := confhelper.ConfStringOrFatal(conf, "paths", "tpls")
tplRegister = loadTpl(tplpath, "register")
tplMsg = loadTpl(tplpath, "msg")