mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:00:54 +00:00
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)
|
beego.InsertFilter(cpt.URLPrefix+"*", beego.BeforeRouter, cpt.Handler)
|
||||||
|
|
||||||
// add to template func map
|
// add to template func map
|
||||||
beego.AddFuncMap("create_captcha", cpt.CreateCaptchaHTML())
|
beego.AddFuncMap("create_captcha", cpt.CreateCaptchaHTML)
|
||||||
|
|
||||||
return cpt
|
return cpt
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user