summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-04-10 08:34:19 +0800
committerslene <vslene@gmail.com>2014-04-10 08:34:19 +0800
commit0f9e07de2d232f19d4201ed739b2039e1881ee3f (patch)
tree1208a9098f9587c3698a6001146cd2e49f5804f3 /modules
parent3487f1728530fd2b0a447fe6fd7ef079cb53eed4 (diff)
downloadgitea-0f9e07de2d232f19d4201ed739b2039e1881ee3f.tar.gz
gitea-0f9e07de2d232f19d4201ed739b2039e1881ee3f.zip
fix render bug
Diffstat (limited to 'modules')
-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)))