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
This commit is contained in:
Bjørn Erik Pedersen 2018-10-06 12:04:29 +02:00
parent e421696d02
commit 646a52a5c5
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

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