Removed dir arg from compileTemplates().
This commit is contained in:
parent
4b8cc9060e
commit
e2b2758b34
@ -60,7 +60,7 @@ type UploadHandlers struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewUploadHandlers(conf *configuration.Configuration, lErr, lUp, lDown *logging.Logger, uploadDirSize *int64) *UploadHandlers {
|
func NewUploadHandlers(conf *configuration.Configuration, lErr, lUp, lDown *logging.Logger, uploadDirSize *int64) *UploadHandlers {
|
||||||
compileTemplates(path.Join(conf.WebDir, "templates"), lErr)
|
compileTemplates(lErr)
|
||||||
|
|
||||||
return &UploadHandlers{
|
return &UploadHandlers{
|
||||||
conf: conf,
|
conf: conf,
|
||||||
@ -224,7 +224,7 @@ func (h *UploadHandlers) NotFound(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func compileTemplates(dir string, lErr *logging.Logger) {
|
func compileTemplates(lErr *logging.Logger) {
|
||||||
compiledTemplates = make(map[string]*template.Template)
|
compiledTemplates = make(map[string]*template.Template)
|
||||||
|
|
||||||
t, _ := fs.Sub(templatesDir, "web/templates")
|
t, _ := fs.Sub(templatesDir, "web/templates")
|
||||||
|
Loading…
Reference in New Issue
Block a user