From 58f0c68151d40009800eca138d52c29cac0410e8 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 6 Mar 2016 16:40:04 -0500 Subject: Some minor changes --- cmd/web.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index 82cde7b4..ec2486ac 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, })) -- cgit v1.2.3