diff options
author | Unknwon <u@gogs.io> | 2016-03-06 16:40:04 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-03-06 16:40:04 -0500 |
commit | 58f0c68151d40009800eca138d52c29cac0410e8 (patch) | |
tree | 919d0ede05761f194749d2b953f890aa947d4715 /cmd/web.go | |
parent | 12b5a76b0d528a6b4159894204163ce16f4c247a (diff) | |
download | gitea-58f0c68151d40009800eca138d52c29cac0410e8.tar.gz gitea-58f0c68151d40009800eca138d52c29cac0410e8.zip |
Some minor changes
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, })) |