aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-04-09 21:42:30 -0400
committerUnknown <joe2010xtmf@163.com>2014-04-09 21:42:30 -0400
commitb3f1ae1ba6144b25c937d7b6db085e6b902e74ab (patch)
tree608a7f1656a410b2bafb9a94efa961715327ec05
parent5d4025cb5a629716bf84f4f5bf3baa97af716df4 (diff)
parent0f9e07de2d232f19d4201ed739b2039e1881ee3f (diff)
downloadgitea-b3f1ae1ba6144b25c937d7b6db085e6b902e74ab.tar.gz
gitea-b3f1ae1ba6144b25c937d7b6db085e6b902e74ab.zip
Merge branch 'dev' of github.com:gogits/gogs into dev
-rw-r--r--modules/middleware/render.go2
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)))