fix the add tempfunc

This commit is contained in:
astaxie 2016-01-18 15:27:33 +08:00
parent 089242eda0
commit 918b9e510f
1 changed files with 1 additions and 1 deletions

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
}