diff options
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 82cde7b474..ec2486acbe 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -7,7 +7,6 @@ package cmd import ( "crypto/tls" "fmt" - gotmpl "html/template" "io/ioutil" "net/http" "net/http/fcgi" @@ -126,7 +125,7 @@ func newMacaron() *macaron.Macaron { )) m.Use(macaron.Renderer(macaron.RenderOptions{ Directory: path.Join(setting.StaticRootPath, "templates"), - Funcs: []gotmpl.FuncMap{template.Funcs}, + Funcs: template.NewFuncMap(), IndentJSON: macaron.Env != macaron.PROD, })) |