mirror of https://github.com/astaxie/beego.git
fix the add tempfunc
This commit is contained in:
parent
089242eda0
commit
918b9e510f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue