Browse Source

Merge branch 'dev' of github.com:gogits/gogs into dev

tags/v1.2.0-rc1
Unknown 11 years ago
parent
commit
b3f1ae1ba6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/middleware/render.go

+ 1
- 1
modules/middleware/render.go View File

@@ -146,7 +146,7 @@ func compile(options RenderOptions) *template.Template {
tmpl := t.New(filepath.ToSlash(name)) tmpl := t.New(filepath.ToSlash(name))


for _, funcs := range options.Funcs { for _, funcs := range options.Funcs {
tmpl.Funcs(funcs)
tmpl = tmpl.Funcs(funcs)
} }


template.Must(tmpl.Funcs(helperFuncs).Parse(string(buf))) template.Must(tmpl.Funcs(helperFuncs).Parse(string(buf)))


Loading…
Cancel
Save