diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-09 21:42:30 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-09 21:42:30 -0400 |
commit | b3f1ae1ba6144b25c937d7b6db085e6b902e74ab (patch) | |
tree | 608a7f1656a410b2bafb9a94efa961715327ec05 | |
parent | 5d4025cb5a629716bf84f4f5bf3baa97af716df4 (diff) | |
parent | 0f9e07de2d232f19d4201ed739b2039e1881ee3f (diff) | |
download | gitea-b3f1ae1ba6144b25c937d7b6db085e6b902e74ab.tar.gz gitea-b3f1ae1ba6144b25c937d7b6db085e6b902e74ab.zip |
Merge branch 'dev' of github.com:gogits/gogs into dev
-rw-r--r-- | modules/middleware/render.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/render.go b/modules/middleware/render.go index 98d485afec..662899883f 100644 --- a/modules/middleware/render.go +++ b/modules/middleware/render.go @@ -146,7 +146,7 @@ func compile(options RenderOptions) *template.Template { tmpl := t.New(filepath.ToSlash(name)) for _, funcs := range options.Funcs { - tmpl.Funcs(funcs) + tmpl = tmpl.Funcs(funcs) } template.Must(tmpl.Funcs(helperFuncs).Parse(string(buf))) |