1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-17 03:43:33 +00:00

fix the add tempfunc

This commit is contained in:
astaxie 2016-01-18 15:27:33 +08:00
parent 089242eda0
commit 918b9e510f

View File

@ -263,7 +263,7 @@ func NewWithFilter(urlPrefix string, store cache.Cache) *Captcha {
beego.InsertFilter(cpt.URLPrefix+"*", beego.BeforeRouter, cpt.Handler)
// add to template func map
beego.AddFuncMap("create_captcha", cpt.CreateCaptchaHTML())
beego.AddFuncMap("create_captcha", cpt.CreateCaptchaHTML)
return cpt
}