Commit 918b9e51 authored by astaxie's avatar astaxie

fix the add tempfunc

parent 089242ed
......@@ -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
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment