1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 07:20:55 +00:00

修复key字符串bug

This commit is contained in:
xiemengjun 2012-12-17 20:37:19 +08:00
parent 71b03774cc
commit ad892008cc

View File

@ -47,7 +47,7 @@ func Compare(a, b interface{}) (equal bool) {
// AddFuncMap let user to register a func in the template
func AddFuncMap(key string, funname interface{}) error {
if _, ok := beegoTplFuncMap["key"]; ok {
if _, ok := beegoTplFuncMap[key]; ok {
beegoTplFuncMap[key] = funname
return nil
}