summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-06 12:04:29 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-10-06 12:04:29 +0200
commit646a52a5c5f52890f2d0270b68ba0f863047484a (patch)
tree3bef8a2d92a41bce847bc890c6f08325d8f06d9a /tpl
parente421696d02bfb8764ae57238e211ce0e85e9782e (diff)
tpl: Fix baseof.html in error message
This fix should also make the template loadin slightly faster, as we avoid to reparse the baseof.html files more than one time. Fixes #5288
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/template.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go
index f19c312ec..54f4aeda7 100644
--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -568,7 +568,7 @@ func (t *htmlTemplates) handleMaster(name, overlayFilename, masterFilename strin
return err
}
- masterTpl, err = t.t.New(overlayFilename).Parse(templ)
+ masterTpl, err = t.t.New(masterFilename).Parse(templ)
if err != nil {
return err
}
@@ -609,7 +609,7 @@ func (t *textTemplates) handleMaster(name, overlayFilename, masterFilename strin
return err
}
- masterTpl, err = t.t.New(overlayFilename).Parse(templ)
+ masterTpl, err = t.t.New(masterFilename).Parse(templ)
if err != nil {
return err
}